Skip to content

Commit 3f4b297

Browse files
authored
Feature/about (#166): feat(core): env & about
* feat(core): env & about * optimize(about): add avatar and icon * optimize: about config
1 parent 250bb86 commit 3f4b297

File tree

22 files changed

+555
-416
lines changed

22 files changed

+555
-416
lines changed

.env.development

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ENV = 'development'
2+
3+
VUE_APP_BASE_URL = 'http://dev.lin.colorful3.com'

.env.production

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
3+
VUE_APP_BASE_URL = 'http://dev.lin.colorful3.com'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lin-cms",
3-
"version": "0.1.0-beta.2",
3+
"version": "0.1.0-beta.3",
44
"private": true,
55
"scripts": {
66
"serve": "node script/plugin-get-config.js && vue-cli-service serve",

public/iconfont.css

Lines changed: 18 additions & 6 deletions
Large diffs are not rendered by default.

public/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
height: 98px;
2727
position: fixed;
2828
left: 20%;
29+
top: 43%;
2930
}
3031
.spinner {
3132
position: relative;

src/assets/img/about/avatar.png

90.9 KB
Loading

src/assets/img/about/icon1.png

7.1 KB
Loading

src/assets/img/about/icon2.png

6.99 KB
Loading

src/assets/img/about/icon3.png

7.17 KB
Loading

src/assets/img/about/icon4.png

5.55 KB
Loading

src/assets/img/about/open-source.jpg

177 KB
Loading

src/assets/img/about/welcome.png

100644100755
-9.62 KB
Loading

src/components/layout/ReuseTab.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<swiper-slide v-for="(item, index) in histories" :key="item.path">
55
<router-link
66
class="reuse-tab-item"
7-
v-ripple
87
:class="item.path === $route.path ? 'active' : ''"
98
:to="item.path"
109
@contextmenu.prevent.native="onTags">
@@ -21,7 +20,6 @@
2120
<script>
2221
import { mapGetters } from 'vuex'
2322
import { swiper, swiperSlide } from 'vue-awesome-swiper'
24-
import ripple from 'lin/directives/ripple'
2523
2624
import "swiper/dist/css/swiper.css" // eslint-disable-line
2725

src/config/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const Config = {
2-
baseUrl: 'http://dev.lin.colorful3.com',
2+
baseUrl: process.env.VUE_APP_BASE_URL,
33
stagnateTime: 1 * 60 * 60 * 1000, // 无操作停滞时间 默认1小时
44
openAutoJumpOut: true, // 是否开启无操作跳出
55
notLoginRoute: ['login'], // 无需登录即可访问的路由 name,

src/lin/models/user.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {
33
post,
44
get,
55
put,
6-
// } from '@/lin/utils/http'
76
} from '@/lin/plugins/axios'
87
import { saveTokens, saveAccessToken } from '../utils/cookie'
98

File renamed without changes.

src/lin/plugins/axios.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ const config = {
3030
// 创建请求实例
3131
const _axios = axios.create(config)
3232

33-
_axios.interceptors.request.use((orignConfig) => {
34-
const reqConfig = { ...orignConfig }
33+
_axios.interceptors.request.use((originConfig) => {
34+
const reqConfig = { ...originConfig }
3535

3636
// step1: 容错处理
3737
if (!reqConfig.url) {

src/lin/plugins/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
import './autoJump'
1+
import './auto-jump'
22
import './axios'

src/lin/utils/exception.js

Lines changed: 0 additions & 77 deletions
This file was deleted.

src/lin/utils/http.js

Lines changed: 0 additions & 120 deletions
This file was deleted.

src/models/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)