Skip to content

Commit

Permalink
vue.config.js: added demo score file for playground page.
Browse files Browse the repository at this point in the history
  • Loading branch information
k.l.lambda committed Dec 18, 2024
1 parent 441dea1 commit bb59733
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/views/playground.vue
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,9 @@
const INIT_LILY = process.env.VUE_APP_DEMO_SCORE || "";
export default {
name: "playground",
Expand Down Expand Up @@ -448,7 +451,7 @@
},
dragHover: null,
sourceDragHover: false,
lilySource: "",
lilySource: INIT_LILY,
converting: false,
engraving: false,
svgDocuments: null,
Expand Down
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
chord mode symbol affiliation


* 2024.12.18

+ vue.config.js: added demo score file for playground page.


* 2024.11.22

+ Dockerfile created.
Expand Down
6 changes: 6 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@

const fs = require("fs");


const htmlCommonTemplate = "./app/html/CommonTemplate.html";


if (process.env.SOURCE_EDITOR_DIR)
process.env.VUE_APP_USE_SOURCE_EDITOR = true;

if (fs.existsSync("./demo.local.ly"))
process.env.VUE_APP_DEMO_SCORE = fs.readFileSync("./demo.local.ly", "utf8");



module.exports = {
Expand Down

0 comments on commit bb59733

Please sign in to comment.