From b6255244ef417483e8db6106aecee3ad79b8182f Mon Sep 17 00:00:00 2001 From: cutls Date: Sat, 8 Feb 2020 00:25:31 +0900 Subject: [PATCH] for pwa test --- index.html => app/index.html | 0 app/view/make/acct.sample.html | 13 +++++++------ app/view/make/index.sample.html | 18 +++++++++--------- app/view/make/make.js | 2 ++ app/view/make/setting.sample.html | 15 ++++++++------- app/view/make/update.sample.html | 9 +++++---- 6 files changed, 31 insertions(+), 26 deletions(-) rename index.html => app/index.html (100%) diff --git a/index.html b/app/index.html similarity index 100% rename from index.html rename to app/index.html diff --git a/app/view/make/acct.sample.html b/app/view/make/acct.sample.html index c96868cc..ac921898 100644 --- a/app/view/make/acct.sample.html +++ b/app/view/make/acct.sample.html @@ -4,7 +4,7 @@ Account Manager - TheDesk @@ -13,7 +13,7 @@ @@ -26,19 +26,20 @@ @@comment-end@@ + @@pwa@@ - + - + diff --git a/app/view/make/index.sample.html b/app/view/make/index.sample.html index d624b3e4..4336a6e5 100644 --- a/app/view/make/index.sample.html +++ b/app/view/make/index.sample.html @@ -5,14 +5,14 @@ - - + + - + @@comment-start@@ + - - - + + + - - + + diff --git a/app/view/make/make.js b/app/view/make/make.js index 528ff04e..99c24f80 100644 --- a/app/view/make/make.js +++ b/app/view/make/make.js @@ -140,8 +140,10 @@ function main(ver, basefile, pwa) { source = source.replace(/@@langlist@@/g, langstr) if(pwa) { source = source.replace(/@@pwa@@/g, '') + source = source.replace(/@@node_base@@/g, 'dependencies') } else { source = source.replace(/@@pwa@@/g, '') + source = source.replace(/@@node_base@@/g, 'node_modules') } fs.writeFileSync(basefile + 'view/' + lang + '/' + pages[i], source) } diff --git a/app/view/make/setting.sample.html b/app/view/make/setting.sample.html index 137c52db..b0d1c2d4 100644 --- a/app/view/make/setting.sample.html +++ b/app/view/make/setting.sample.html @@ -11,11 +11,11 @@ @@comment-end@@ - + - + + @@pwa@@ - + - + - - + + - +

@@setting@@