mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-01-30 14:09:58 +08:00
Simplify imports
This commit is contained in:
parent
f6845ab22c
commit
be41f1a6b8
@ -1,9 +1,16 @@
|
||||
/* eslint-disable import/no-extraneous-dependencies */
|
||||
import './public-path' // Must be first
|
||||
import 'jquery'
|
||||
import 'bootstrap/js/dropdown'
|
||||
import 'bootstrap/js/modal'
|
||||
import 'bootstrap/js/transition'
|
||||
import 'admin-lte/build/js/Layout'
|
||||
import 'admin-lte/build/js/PushMenu'
|
||||
import 'admin-lte/build/js/Tree'
|
||||
import './i18n'
|
||||
import './net'
|
||||
import './event'
|
||||
import './element'
|
||||
import './layout'
|
||||
import './logout'
|
||||
import './check-updates'
|
||||
|
||||
|
@ -1,23 +0,0 @@
|
||||
/* eslint-disable import/no-extraneous-dependencies */
|
||||
import 'bootstrap/js/dropdown'
|
||||
import 'bootstrap/js/modal'
|
||||
import 'admin-lte/build/js/Layout'
|
||||
import 'admin-lte/build/js/PushMenu'
|
||||
import 'admin-lte/build/js/Tree'
|
||||
|
||||
(() => {
|
||||
const list = [
|
||||
{
|
||||
path: 'admin',
|
||||
styl: () => import('../stylus/admin.styl'),
|
||||
},
|
||||
{
|
||||
path: 'auth',
|
||||
styl: () => import('../stylus/auth.styl'),
|
||||
},
|
||||
]
|
||||
const style = list.find(({ path }) => blessing.route.startsWith(path))
|
||||
if (style) {
|
||||
style.styl()
|
||||
}
|
||||
})()
|
@ -1,29 +1,3 @@
|
||||
.btn-group
|
||||
.btn
|
||||
margin-right 10px
|
||||
|
||||
td
|
||||
a
|
||||
color inherit
|
||||
|
||||
img
|
||||
margin-left 10px
|
||||
|
||||
cursor pointer
|
||||
|
||||
a:first-child > img
|
||||
margin-left 0
|
||||
|
||||
a:last-child > img
|
||||
margin-left 0
|
||||
|
||||
.description
|
||||
margin 7px 0 0 0
|
||||
color #555
|
||||
|
||||
a
|
||||
color #3c8dbc
|
||||
|
||||
.btn-edit
|
||||
font-size 12px
|
||||
color #367fa9
|
||||
|
@ -8,5 +8,5 @@
|
||||
.captcha
|
||||
cursor pointer
|
||||
|
||||
.el-button
|
||||
.auth-btn.el-button
|
||||
width 100%
|
||||
|
@ -1,3 +1,6 @@
|
||||
@import './auth'
|
||||
@import './admin'
|
||||
|
||||
font_stack = Ubuntu, 'Segoe UI', 'Microsoft Yahei', 'Microsoft Jhenghei', sans-serif
|
||||
|
||||
@font-face
|
||||
|
@ -22,7 +22,12 @@
|
||||
<a v-t="'auth.forgot.login-link'" :href="`${baseUrl}/auth/login`" class="text-center" />
|
||||
</div>
|
||||
<div class="col-xs-5">
|
||||
<el-button type="primary" native-type="submit" :disabled="pending">
|
||||
<el-button
|
||||
type="primary"
|
||||
native-type="submit"
|
||||
:disabled="pending"
|
||||
class="auth-btn"
|
||||
>
|
||||
<template v-if="pending">
|
||||
<i class="fa fa-spinner fa-spin" /> {{ $t('auth.sending') }}
|
||||
</template>
|
||||
|
@ -37,7 +37,12 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<el-button type="primary" native-type="submit" :disabled="pending">
|
||||
<el-button
|
||||
type="primary"
|
||||
native-type="submit"
|
||||
:disabled="pending"
|
||||
class="auth-btn"
|
||||
>
|
||||
<template v-if="pending">
|
||||
<i class="fa fa-spinner fa-spin" /> {{ $t('auth.loggingIn') }}
|
||||
</template>
|
||||
|
@ -74,7 +74,12 @@
|
||||
<a v-t="'auth.login-link'" :href="`${baseUrl}/auth/login`" class="text-center" />
|
||||
</div>
|
||||
<div class="col-xs-5">
|
||||
<el-button type="primary" native-type="submit" :disabled="pending">
|
||||
<el-button
|
||||
type="primary"
|
||||
native-type="submit"
|
||||
:disabled="pending"
|
||||
class="auth-btn"
|
||||
>
|
||||
<template v-if="pending">
|
||||
<i class="fa fa-spinner fa-spin" /> {{ $t('auth.registering') }}
|
||||
</template>
|
||||
|
@ -27,7 +27,12 @@
|
||||
<div class="row">
|
||||
<div class="col-xs-7" />
|
||||
<div class="col-xs-5">
|
||||
<el-button type="primary" native-type="submit" :disabled="pending">
|
||||
<el-button
|
||||
type="primary"
|
||||
native-type="submit"
|
||||
:disabled="pending"
|
||||
class="auth-btn"
|
||||
>
|
||||
<template v-if="pending">
|
||||
<i class="fa fa-spinner fa-spin" /> {{ $t('auth.resetting') }}
|
||||
</template>
|
||||
|
Loading…
Reference in New Issue
Block a user