mirror of
https://github.com/hydra-synth/hydra.git
synced 2025-12-18 21:00:12 +01:00
re-added example licenses
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
# Changelog
|
||||
## [1.3.6] - 2022-04-27
|
||||
### Fixed
|
||||
- re-added cc licensing info to example sketches
|
||||
|
||||
## [1.3.5] - 2022-04-14
|
||||
### Added
|
||||
- url parameters for updating translation: l10n-url and l10n-lang
|
||||
|
||||
File diff suppressed because one or more lines are too long
2
frontend/web-editor/public/bundle.min.js
vendored
2
frontend/web-editor/public/bundle.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -15,7 +15,7 @@
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.min.js" defer></script>
|
||||
<!-- <script src="./bundle.js?1.2we2ajk" defer></script> -->
|
||||
<script src="./bundle.min.js?1.3.5" defer></script>
|
||||
<script src="./bundle.min.js?1.3.6" defer></script>
|
||||
<link href="https://fonts.googleapis.com/css?family=Chivo:300,400,700" rel="stylesheet">
|
||||
<link rel="stylesheet" href="./css/fontawesome.css">
|
||||
<link rel="stylesheet" href="./css/codemirror.css">
|
||||
|
||||
@@ -2,6 +2,7 @@ const request = require('superagent')
|
||||
const examples = require('./examples.json')
|
||||
const sketches = []
|
||||
|
||||
const license = `// licensed with CC BY-NC-SA 4.0 https://creativecommons.org/licenses/by-nc-sa/4.0/`
|
||||
|
||||
class Gallery {
|
||||
constructor (callback) {
|
||||
@@ -155,7 +156,13 @@ class Gallery {
|
||||
}
|
||||
|
||||
setSketch(sketch) {
|
||||
this.code = this.decodeBase64(sketch.code)
|
||||
let code = this.decodeBase64(sketch.code)
|
||||
if(code.indexOf(license) < 0)
|
||||
code =
|
||||
`${license}
|
||||
${code}
|
||||
`
|
||||
this.code = code
|
||||
this.current = sketch
|
||||
// this.setToURL('sketch_id', sketch._id)
|
||||
// let params = Object.keys(sketch).map( (key) => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydra",
|
||||
"version": "1.3.5",
|
||||
"version": "1.3.6",
|
||||
"description": "",
|
||||
"main": "server.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user