Browse Source

Reformat Code [SKIP CI]

20230320
MengYX 5 years ago
parent
commit
95de3e8cc5
No known key found for this signature in database GPG Key ID: E63F9C7303E8F604
  1. 10
      public/index.html
  2. BIN
      src/assets/logo.png
  3. 20
      src/plugins/element.js
  4. 3
      src/plugins/qmc.js
  5. 54
      src/registerServiceWorker.js

10
public/index.html

@ -2,8 +2,8 @@
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="width=device-width,initial-scale=1.0" name="viewport">
<script>var _paq = window._paq || [];
_paq.push(['trackPageView'], ['enableLinkTracking'], ['setSiteId', '2'],
['setTrackerUrl', 'https://stats.ixarea.com/ixarea-stats/report']);
@ -60,9 +60,9 @@
style="border:0"/>
</noscript>
<strong>音乐解锁采用了一些新特性!建议使用
<a target="_blank" href="https://www.google.cn/chrome/">Google Chrome</a>
<a target="_blank" href="https://www.firefox.com.cn/">Mozilla Firefox</a>
| <a target="_blank" href="https://github.com/ix64/unlock-music/wiki/使用提示">使用提示</a>
<a href="https://www.google.cn/chrome/" target="_blank">Google Chrome</a>
<a href="https://www.firefox.com.cn/" target="_blank">Mozilla Firefox</a>
| <a href="https://github.com/ix64/unlock-music/wiki/使用提示" target="_blank">使用提示</a>
</strong>
</div>
<div id="app"></div>

BIN
src/assets/logo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

20
src/plugins/element.js

@ -1,18 +1,18 @@
import Vue from 'vue'
import {
Image,
Button,
Table,
TableColumn,
Main,
Footer,
Col,
Container,
Footer,
Icon,
Row,
Col,
Upload,
Image,
Link,
Main,
Notification,
Link
Row,
Table,
TableColumn,
Upload
} from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css'
@ -29,5 +29,3 @@ Vue.use(Row);
Vue.use(Col);
Vue.use(Upload);
Vue.prototype.$notify = Notification;

3
src/plugins/qmc.js

@ -117,7 +117,4 @@ class Mask {
return ret
}
}

54
src/registerServiceWorker.js

@ -1,32 +1,32 @@
/* eslint-disable no-console */
import { register } from 'register-service-worker'
import {register} from 'register-service-worker'
if (process.env.NODE_ENV === 'production') {
register(`${process.env.BASE_URL}service-worker.js`, {
ready () {
console.log(
'App is being served from cache by a service worker.\n' +
'For more details, visit https://goo.gl/AFskqB'
)
},
registered () {
console.log('Service worker has been registered.')
},
cached () {
console.log('Content has been cached for offline use.')
},
updatefound () {
console.log('New content is downloading.')
},
updated () {
console.log('New content is available; please refresh.')
},
offline () {
console.log('No internet connection found. App is running in offline mode.')
},
error (error) {
console.error('Error during service worker registration:', error)
}
})
register(`${process.env.BASE_URL}service-worker.js`, {
ready() {
console.log(
'App is being served from cache by a service worker.\n' +
'For more details, visit https://goo.gl/AFskqB'
)
},
registered() {
console.log('Service worker has been registered.')
},
cached() {
console.log('Content has been cached for offline use.')
},
updatefound() {
console.log('New content is downloading.')
},
updated() {
console.log('New content is available; please refresh.')
},
offline() {
console.log('No internet connection found. App is running in offline mode.')
},
error(error) {
console.error('Error during service worker registration:', error)
}
})
}

Loading…
Cancel
Save