mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-16 07:57:33 +08:00
code refactor
This commit is contained in:
@@ -0,0 +1,158 @@
|
||||
const licenses = [
|
||||
{
|
||||
name: 'Gin',
|
||||
copyright: 'Copyright (c) 2014 Manuel Martínez-Almeida',
|
||||
url: 'https://github.com/gin-gonic/gin',
|
||||
licenseUrl: 'https://github.com/gin-gonic/gin/blob/master/LICENSE'
|
||||
},
|
||||
{
|
||||
name: 'GZIP gin\'s middleware',
|
||||
copyright: 'Copyright (c) 2017 Gin-Gonic',
|
||||
url: 'https://github.com/gin-contrib/gzip',
|
||||
licenseUrl: 'https://github.com/gin-contrib/gzip/blob/master/LICENSE'
|
||||
},
|
||||
{
|
||||
name: 'xorm',
|
||||
copyright: 'Copyright (c) 2013 - 2015 The Xorm Authors',
|
||||
url: 'https://xorm.io/xorm',
|
||||
licenseUrl: 'https://gitea.com/xorm/xorm/src/branch/master/LICENSE'
|
||||
},
|
||||
{
|
||||
name: 'Logrus',
|
||||
copyright: 'Copyright (c) 2014 Simon Eskildsen',
|
||||
url: 'https://github.com/sirupsen/logrus',
|
||||
licenseUrl: 'https://github.com/sirupsen/logrus/blob/master/LICENSE'
|
||||
},
|
||||
{
|
||||
name: 'cli',
|
||||
copyright: 'Copyright (c) 2016 Jeremy Saenz & Contributors',
|
||||
url: 'https://github.com/urfave/cli',
|
||||
licenseUrl: 'https://github.com/urfave/cli/blob/master/LICENSE'
|
||||
},
|
||||
{
|
||||
name: 'INI',
|
||||
copyright: 'Copyright 2014 Unknwon',
|
||||
url: 'https://gopkg.in/ini.v1',
|
||||
licenseUrl: 'https://github.com/go-ini/ini/blob/master/LICENSE'
|
||||
},
|
||||
{
|
||||
name: 'Package validator',
|
||||
copyright: 'Copyright (c) 2015 Dean Karn',
|
||||
url: 'https://github.com/go-playground/validator',
|
||||
licenseUrl: 'https://github.com/go-playground/validator/blob/master/LICENSE'
|
||||
},
|
||||
{
|
||||
name: 'jwt-go',
|
||||
copyright: 'Copyright (c) 2012 Dave Grijalva',
|
||||
url: 'https://github.com/dgrijalva/jwt-go',
|
||||
licenseUrl: 'https://github.com/dgrijalva/jwt-go/blob/master/LICENSE'
|
||||
},
|
||||
{
|
||||
name: 'otp',
|
||||
url: 'https://github.com/pquerna/otp',
|
||||
licenseUrl: 'https://github.com/pquerna/otp/blob/master/LICENSE'
|
||||
},
|
||||
{
|
||||
name: 'Go-MySQL-Driver',
|
||||
url: 'https://github.com/go-sql-driver/mysql',
|
||||
licenseUrl: 'https://github.com/go-sql-driver/mysql/blob/master/LICENSE'
|
||||
},
|
||||
{
|
||||
name: 'pq',
|
||||
copyright: 'Copyright (c) 2011-2013, \'pq\' Contributors Portions Copyright (C) 2011 Blake Mizerany',
|
||||
url: 'https://github.com/lib/pq',
|
||||
licenseUrl: 'https://github.com/lib/pq/blob/master/LICENSE.md'
|
||||
},
|
||||
{
|
||||
name: 'go-sqlite3',
|
||||
copyright: 'Copyright (c) 2014 Yasuhiro Matsumoto',
|
||||
url: 'https://github.com/mattn/go-sqlite3',
|
||||
licenseUrl: 'https://github.com/mattn/go-sqlite3/blob/master/LICENSE'
|
||||
},
|
||||
{
|
||||
name: 'Go Cryptography',
|
||||
copyright: 'Copyright (c) 2009 The Go Authors. All rights reserved.',
|
||||
url: 'https://golang.org/x/crypto',
|
||||
licenseUrl: 'https://github.com/golang/crypto/blob/master/LICENSE'
|
||||
},
|
||||
{
|
||||
name: 'Testify',
|
||||
copyright: 'Copyright (c) 2012-2020 Mat Ryer, Tyler Bunnell and contributors.',
|
||||
url: 'https://github.com/stretchr/testify',
|
||||
licenseUrl: 'https://github.com/stretchr/testify/blob/master/LICENSE'
|
||||
},
|
||||
{
|
||||
name: 'vue',
|
||||
copyright: 'Copyright (c) 2013-present, Yuxi (Evan) You',
|
||||
url: 'https://github.com/vuejs/vue',
|
||||
licenseUrl: 'https://github.com/vuejs/vue/blob/dev/LICENSE'
|
||||
},
|
||||
{
|
||||
name: 'vue-i18n',
|
||||
copyright: 'Copyright (c) 2016 kazuya kawaguchi',
|
||||
url: 'https://github.com/kazupon/vue-i18n',
|
||||
licenseUrl: 'https://github.com/kazupon/vue-i18n/blob/v8.x/LICENSE'
|
||||
},
|
||||
{
|
||||
name: 'vue-i18n-filter',
|
||||
copyright: 'Copyright (c) 2018 +v',
|
||||
url: 'https://github.com/chiaweilee/vue-i18n-filter',
|
||||
licenseUrl: 'https://github.com/chiaweilee/vue-i18n-filter/blob/master/LICENSE'
|
||||
},
|
||||
{
|
||||
name: 'vue-moment',
|
||||
copyright: 'Copyright (c) 2017 Brock Petrie',
|
||||
url: 'https://github.com/brockpetrie/vue-moment',
|
||||
licenseUrl: 'https://github.com/brockpetrie/vue-moment/blob/master/LICENSE'
|
||||
},
|
||||
{
|
||||
name: 'vue-clipboard2',
|
||||
copyright: 'Copyright (c) 2017 Inndy <inndy \\dot tw \\at gmail \\dot com>',
|
||||
url: 'https://github.com/Inndy/vue-clipboard2',
|
||||
licenseUrl: 'https://github.com/Inndy/vue-clipboard2/blob/master/LICENSE'
|
||||
},
|
||||
{
|
||||
name: 'core-js',
|
||||
copyright: 'Copyright (c) 2014-2020 Denis Pushkarev',
|
||||
url: 'https://github.com/zloirock/core-js',
|
||||
licenseUrl: 'https://github.com/zloirock/core-js/blob/master/LICENSE'
|
||||
},
|
||||
{
|
||||
name: 'Framework7',
|
||||
copyright: 'Copyright (c) 2014 Vladimir Kharlampidi',
|
||||
url: 'https://framework7.io/',
|
||||
licenseUrl: 'https://github.com/framework7io/framework7/blob/master/LICENSE'
|
||||
},
|
||||
{
|
||||
name: 'Framework7-vue',
|
||||
copyright: 'Copyright (c) 2014 Vladimir Kharlampidi',
|
||||
url: 'https://framework7.io/vue/',
|
||||
licenseUrl: 'https://github.com/framework7io/framework7/blob/master/LICENSE'
|
||||
},
|
||||
{
|
||||
name: 'Framework7-icons',
|
||||
copyright: 'Copyright (c) 2016 Vladimir Kharlampidi',
|
||||
url: 'https://framework7.io/icons/',
|
||||
licenseUrl: 'https://github.com/framework7io/framework7-icons'
|
||||
},
|
||||
{
|
||||
name: 'axios',
|
||||
copyright: 'Copyright (c) 2014-present Matt Zabriskie',
|
||||
url: 'https://github.com/axios/axios',
|
||||
licenseUrl: 'https://github.com/axios/axios/blob/master/LICENSE'
|
||||
},
|
||||
{
|
||||
name: 'Moment.js',
|
||||
copyright: 'Copyright (c) JS Foundation and other contributors',
|
||||
url: 'https://momentjs.com',
|
||||
licenseUrl: 'https://github.com/moment/moment/blob/develop/LICENSE'
|
||||
},
|
||||
{
|
||||
name: 'js-cookie',
|
||||
copyright: 'Copyright (c) 2018 Copyright 2018 Klaus Hartl, Fagner Brack, GitHub Contributors',
|
||||
url: 'https://github.com/js-cookie/js-cookie',
|
||||
licenseUrl: 'https://github.com/js-cookie/js-cookie/blob/master/LICENSE'
|
||||
}
|
||||
];
|
||||
|
||||
export default licenses;
|
||||
@@ -17,6 +17,7 @@ import currency from './consts/currency.js';
|
||||
import colors from './consts/color.js';
|
||||
import icons from './consts/icon.js';
|
||||
import account from './consts/account.js';
|
||||
import licenses from './consts/licenses.js';
|
||||
import version from './lib/version.js';
|
||||
import settings from './lib/settings.js';
|
||||
import services from './lib/services.js';
|
||||
@@ -35,6 +36,7 @@ Framework7.use(Framework7Vue);
|
||||
const i18n = new VueI18n(getI18nOptions());
|
||||
|
||||
Vue.prototype.$version = version.getVersion;
|
||||
Vue.prototype.$licenses = licenses;
|
||||
Vue.prototype.$constants = {
|
||||
currency: currency,
|
||||
colors: colors,
|
||||
|
||||
+8
-153
@@ -49,159 +49,11 @@
|
||||
<span>All the third party software included or linked is redistributed under the terms and conditions of their original licenses.</span>
|
||||
</p>
|
||||
<p></p>
|
||||
<p>
|
||||
<strong>Gin</strong><br/>
|
||||
<span>Copyright (c) 2014 Manuel Martínez-Almeida</span><br/>
|
||||
<span class="work-break-all">https://github.com/gin-gonic/gin</span><br/>
|
||||
<span class="work-break-all">License: https://github.com/gin-gonic/gin/blob/master/LICENSE</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>GZIP gin's middleware</strong><br/>
|
||||
<span>Copyright (c) 2017 Gin-Gonic</span><br/>
|
||||
<span class="work-break-all">https://github.com/gin-contrib/gzip</span><br/>
|
||||
<span class="work-break-all">License: https://github.com/gin-contrib/gzip/blob/master/LICENSE</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>xorm</strong><br/>
|
||||
<span>Copyright (c) 2013 - 2015 The Xorm Authors</span><br/>
|
||||
<span class="work-break-all">https://xorm.io/xorm</span><br/>
|
||||
<span class="work-break-all">License: https://gitea.com/xorm/xorm/src/branch/master/LICENSE</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>Logrus</strong><br/>
|
||||
<span>Copyright (c) 2014 Simon Eskildsen</span><br/>
|
||||
<span class="work-break-all">https://github.com/sirupsen/logrus</span><br/>
|
||||
<span class="work-break-all">License: https://github.com/sirupsen/logrus/blob/master/LICENSE</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>cli</strong><br/>
|
||||
<span>Copyright (c) 2016 Jeremy Saenz & Contributors</span><br/>
|
||||
<span class="work-break-all">https://github.com/urfave/cli</span><br/>
|
||||
<span class="work-break-all">License: https://github.com/urfave/cli/blob/master/LICENSE</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>INI</strong><br/>
|
||||
<span>Copyright 2014 Unknwon</span><br/>
|
||||
<span class="work-break-all">https://gopkg.in/ini.v1</span><br/>
|
||||
<span class="work-break-all">License: https://github.com/go-ini/ini/blob/master/LICENSE</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>Package validator</strong><br/>
|
||||
<span>Copyright (c) 2015 Dean Karn</span><br/>
|
||||
<span class="work-break-all">https://github.com/go-playground/validator</span><br/>
|
||||
<span class="work-break-all">License: https://github.com/go-playground/validator/blob/master/LICENSE</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>jwt-go</strong><br/>
|
||||
<span>Copyright (c) 2012 Dave Grijalva</span><br/>
|
||||
<span class="work-break-all">https://github.com/dgrijalva/jwt-go</span><br/>
|
||||
<span class="work-break-all">License: https://github.com/dgrijalva/jwt-go/blob/master/LICENSE</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>otp</strong><br/>
|
||||
<span class="work-break-all">https://github.com/pquerna/otp</span><br/>
|
||||
<span class="work-break-all">License: https://github.com/pquerna/otp/blob/master/LICENSE</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>Go-MySQL-Driver</strong><br/>
|
||||
<span class="work-break-all">https://github.com/go-sql-driver/mysql</span><br/>
|
||||
<span class="work-break-all">License: https://github.com/go-sql-driver/mysql/blob/master/LICENSE</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>pq</strong><br/>
|
||||
<span>Copyright (c) 2011-2013, 'pq' Contributors Portions Copyright (C) 2011 Blake Mizerany</span><br/>
|
||||
<span class="work-break-all">https://github.com/lib/pq</span><br/>
|
||||
<span class="work-break-all">License: https://github.com/lib/pq/blob/master/LICENSE.md</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>go-sqlite3</strong><br/>
|
||||
<span>Copyright (c) 2014 Yasuhiro Matsumoto</span><br/>
|
||||
<span class="work-break-all">https://github.com/mattn/go-sqlite3</span><br/>
|
||||
<span class="work-break-all">License: https://github.com/mattn/go-sqlite3/blob/master/LICENSE</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>Go Cryptography</strong><br/>
|
||||
<span>Copyright (c) 2009 The Go Authors. All rights reserved.</span><br/>
|
||||
<span class="work-break-all">https://golang.org/x/crypto</span><br/>
|
||||
<span class="work-break-all">License: https://github.com/golang/crypto/blob/master/LICENSE</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>Testify</strong><br/>
|
||||
<span>Copyright (c) 2012-2020 Mat Ryer, Tyler Bunnell and contributors.</span><br/>
|
||||
<span class="work-break-all">https://github.com/stretchr/testify</span><br/>
|
||||
<span class="work-break-all">License: https://github.com/stretchr/testify/blob/master/LICENSE</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>vue</strong><br/>
|
||||
<span>Copyright (c) 2013-present, Yuxi (Evan) You</span><br/>
|
||||
<span class="work-break-all">https://github.com/vuejs/vue</span><br/>
|
||||
<span class="work-break-all">License: https://github.com/vuejs/vue/blob/dev/LICENSE</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>vue-i18n</strong><br/>
|
||||
<span>Copyright (c) 2016 kazuya kawaguchi</span><br/>
|
||||
<span class="work-break-all">https://github.com/kazupon/vue-i18n</span><br/>
|
||||
<span class="work-break-all">License: https://github.com/kazupon/vue-i18n/blob/v8.x/LICENSE</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>vue-i18n-filter</strong><br/>
|
||||
<span>Copyright (c) 2018 +v</span><br/>
|
||||
<span class="work-break-all">https://github.com/chiaweilee/vue-i18n-filter</span><br/>
|
||||
<span class="work-break-all">License: https://github.com/chiaweilee/vue-i18n-filter/blob/master/LICENSE</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>vue-moment</strong><br/>
|
||||
<span>Copyright (c) 2017 Brock Petrie</span><br/>
|
||||
<span class="work-break-all">https://github.com/brockpetrie/vue-moment</span><br/>
|
||||
<span class="work-break-all">License: https://github.com/brockpetrie/vue-moment/blob/master/LICENSE</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>vue-clipboard2</strong><br/>
|
||||
<span>Copyright (c) 2017 Inndy <inndy \dot tw \at gmail \dot com></span><br/>
|
||||
<span class="work-break-all">https://github.com/Inndy/vue-clipboard2</span><br/>
|
||||
<span class="work-break-all">License: https://github.com/Inndy/vue-clipboard2/blob/master/LICENSE</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>core-js</strong><br/>
|
||||
<span>Copyright (c) 2014-2020 Denis Pushkarev</span><br/>
|
||||
<span class="work-break-all">https://github.com/zloirock/core-js</span><br/>
|
||||
<span class="work-break-all">License: https://github.com/zloirock/core-js/blob/master/LICENSE</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>Framework7</strong><br/>
|
||||
<span>Copyright (c) 2014 Vladimir Kharlampidi</span><br/>
|
||||
<span class="work-break-all">https://framework7.io/</span><br/>
|
||||
<span class="work-break-all">License: https://github.com/framework7io/framework7/blob/master/LICENSE</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>Framework7-vue</strong><br/>
|
||||
<span>Copyright (c) 2014 Vladimir Kharlampidi</span><br/>
|
||||
<span class="work-break-all">https://framework7.io/vue/</span><br/>
|
||||
<span class="work-break-all">License: https://github.com/framework7io/framework7/blob/master/LICENSE</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>Framework7-icons</strong><br/>
|
||||
<span>Copyright (c) 2016 Vladimir Kharlampidi</span><br/>
|
||||
<span class="work-break-all">https://framework7.io/icons/</span><br/>
|
||||
<span class="work-break-all">License: https://github.com/framework7io/framework7-icons</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>axios</strong><br/>
|
||||
<span>Copyright (c) 2014-present Matt Zabriskie</span><br/>
|
||||
<span class="work-break-all">https://github.com/axios/axios</span><br/>
|
||||
<span class="work-break-all">License: https://github.com/axios/axios/blob/master/LICENSE</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>Moment.js</strong><br/>
|
||||
<span>Copyright (c) JS Foundation and other contributors</span><br/>
|
||||
<span class="work-break-all">https://momentjs.com</span><br/>
|
||||
<span class="work-break-all">License: https://github.com/moment/moment/blob/develop/LICENSE</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>js-cookie</strong><br/>
|
||||
<span>Copyright (c) 2018 Copyright 2018 Klaus Hartl, Fagner Brack, GitHub Contributors</span><br/>
|
||||
<span class="work-break-all">https://github.com/js-cookie/js-cookie</span><br/>
|
||||
<span class="work-break-all">License: https://github.com/js-cookie/js-cookie/blob/master/LICENSE</span>
|
||||
<p v-for="license in licenses" :key="license.name">
|
||||
<strong>{{ license.name }}</strong>
|
||||
<br v-if="license.copyright"/><span v-if="license.copyright">{{ license.copyright }}</span>
|
||||
<br v-if="license.url"/><span class="work-break-all" v-if="license.url">{{ license.url }}</span>
|
||||
<br v-if="license.licenseUrl"/><span class="work-break-all" v-if="license.licenseUrl">License: {{ license.licenseUrl }}</span>
|
||||
</p>
|
||||
</f7-block>
|
||||
</f7-page>
|
||||
@@ -214,6 +66,9 @@ export default {
|
||||
computed: {
|
||||
version() {
|
||||
return 'v' + this.$version();
|
||||
},
|
||||
licenses() {
|
||||
return this.$licenses;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user