ソースを参照

Use CDN for jquery as temp workaround for pkg problem

Key Networks 7 年 前
コミット
c3db94a0a3
5 ファイル変更5 行追加4 行削除
  1. 1 1
      README.md
  2. 1 0
      build/after-upgrade.sh
  3. 1 1
      src/package-lock.json
  4. 1 1
      src/package.json
  5. 1 1
      src/views/head_layout.pug

+ 1 - 1
README.md

@@ -34,7 +34,7 @@ git clone https://github.com/key-networks/ztncui
 
 ##### 2. Install the [node.js](https://nodejs.org) packages:
 ```shell
-cd ztncui
+cd ztncui/src
 npm install
 ```
 

+ 1 - 0
build/after-upgrade.sh

@@ -1 +1,2 @@
+systemctl daemon-reload
 systemctl try-restart ztncui

+ 1 - 1
src/package-lock.json

@@ -1,6 +1,6 @@
 {
   "name": "ztncui",
-  "version": "0.3.0",
+  "version": "0.3.2",
   "lockfileVersion": 1,
   "requires": true,
   "dependencies": {

+ 1 - 1
src/package.json

@@ -1,6 +1,6 @@
 {
   "name": "ztncui",
-  "version": "0.3.0",
+  "version": "0.3.2",
   "private": true,
   "scripts": {
     "start": "node ./bin/www",

+ 1 - 1
src/views/head_layout.pug

@@ -11,7 +11,7 @@ html(lang='en')
     meta(name='viewport', content='width=device-width, initial-scale=1')
     link(rel='stylesheet', href='/bscss/bootstrap.min.css')
     link(rel='stylesheet', href='/stylesheets/style.css')
-    script(src='/jqjs/jquery.min.js')
+    script(src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js')
     script(src='/bsjs/bootstrap.min.js')
   body
     block body_content