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. 16
      src/registerServiceWorker.js

10
public/index.html

@ -2,8 +2,8 @@
<html lang="zh-CN"> <html lang="zh-CN">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta content="width=device-width,initial-scale=1.0" name="viewport">
<script>var _paq = window._paq || []; <script>var _paq = window._paq || [];
_paq.push(['trackPageView'], ['enableLinkTracking'], ['setSiteId', '2'], _paq.push(['trackPageView'], ['enableLinkTracking'], ['setSiteId', '2'],
['setTrackerUrl', 'https://stats.ixarea.com/ixarea-stats/report']); ['setTrackerUrl', 'https://stats.ixarea.com/ixarea-stats/report']);
@ -60,9 +60,9 @@
style="border:0"/> style="border:0"/>
</noscript> </noscript>
<strong>音乐解锁采用了一些新特性!建议使用 <strong>音乐解锁采用了一些新特性!建议使用
<a target="_blank" href="https://www.google.cn/chrome/">Google Chrome</a> <a href="https://www.google.cn/chrome/" target="_blank">Google Chrome</a>
<a target="_blank" href="https://www.firefox.com.cn/">Mozilla Firefox</a> <a href="https://www.firefox.com.cn/" target="_blank">Mozilla Firefox</a>
| <a target="_blank" href="https://github.com/ix64/unlock-music/wiki/使用提示">使用提示</a> | <a href="https://github.com/ix64/unlock-music/wiki/使用提示" target="_blank">使用提示</a>
</strong> </strong>
</div> </div>
<div id="app"></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 Vue from 'vue'
import { import {
Image,
Button, Button,
Table, Col,
TableColumn,
Main,
Footer,
Container, Container,
Footer,
Icon, Icon,
Row, Image,
Col, Link,
Upload, Main,
Notification, Notification,
Link Row,
Table,
TableColumn,
Upload
} from 'element-ui'; } from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css' import 'element-ui/lib/theme-chalk/index.css'
@ -29,5 +29,3 @@ Vue.use(Row);
Vue.use(Col); Vue.use(Col);
Vue.use(Upload); Vue.use(Upload);
Vue.prototype.$notify = Notification; Vue.prototype.$notify = Notification;

3
src/plugins/qmc.js

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

16
src/registerServiceWorker.js

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

Loading…
Cancel
Save