Compare commits

..

106 Commits
i18n ... deploy

Author SHA1 Message Date
花裤衩
b6fcfddbb0 Merge branch 'i18n' into deploy 2020-09-07 21:46:39 +08:00
花裤衩
dc3f409986 chore: ad 2020-07-07 10:40:52 +08:00
花裤衩
e95137dc59 chore: update carbonads 2020-07-02 10:16:32 +08:00
花裤衩
12cd95b837 chore: add carbon 2020-07-01 22:01:12 +08:00
花裤衩
a9f1de65a5 chore: rm ad 2020-07-01 10:07:52 +08:00
花裤衩
088172b578 Merge branch 'i18n' into deploy 2020-06-23 21:14:20 +08:00
花裤衩
fa26b7991d update 2020-06-21 21:29:17 +08:00
花裤衩
1d22adb6fc Revert "change codefund"
This reverts commit 05ce7ac1ec.
2020-06-17 11:34:31 +08:00
花裤衩
05ce7ac1ec change codefund 2020-06-09 11:50:34 +08:00
花裤衩
8b5f4d00d6 Merge branch 'i18n' into deploy 2020-06-09 11:41:46 +08:00
花裤衩
e75e9a301a Merge branch 'i18n' into deploy 2020-01-09 20:25:46 +08:00
花裤衩
f1d5e5c19b Merge branch 'i18n' into deploy 2020-01-09 17:46:51 +08:00
花裤衩
2d27251f2e Merge branch 'i18n' into deploy 2019-12-16 10:34:18 +08:00
花裤衩
5d981eee7e Revert "change codefund"
This reverts commit 136d962c1e.
2019-12-03 10:35:00 +08:00
花裤衩
136d962c1e change codefund 2019-11-29 10:15:33 +08:00
花裤衩
da5de5c689 merge 2019-10-12 19:30:30 +08:00
花裤衩
b6929ca915 Merge branch 'i18n' into deploy 2019-10-12 18:08:04 +08:00
Pan
e0da0d0268 change api 2019-06-05 09:39:36 +08:00
Pan
b7b12acbd2 Merge branch 'i18n' into deploy 2019-06-05 09:38:00 +08:00
Pan
f1637ed780 Merge branch 'i18n' into deploy 2019-05-27 16:33:43 +08:00
Pan
5b70eba9a0 merge 2019-05-21 10:58:51 +08:00
Pan
f606b77472 Merge branch 'i18n' into deploy 2019-05-09 12:47:59 +08:00
Pan
c2063f95fd Merge branch 'i18n' into deploy 2019-05-05 17:21:36 +08:00
Pan
b303d02783 Merge branch 'master' into deploy 2019-05-03 17:34:39 +08:00
Pan
8123266fe5 Merge branch 'master' into deploy 2019-05-02 14:01:30 +08:00
Pan
b70718b50a merge 2019-04-30 16:45:19 +08:00
Pan
d9503de853 d 2019-04-23 13:09:23 +08:00
Pan
59800bfaa3 d 2019-04-23 13:09:11 +08:00
Pan
965c2eca65 Merge branch 'master' into deploy 2019-04-23 13:06:46 +08:00
Pan
1c9723949d refine 2019-04-16 16:19:36 +08:00
Pan
061ab5ee6d refine 2019-04-16 16:19:04 +08:00
Pan
8835c5b48f merge master 2019-04-16 15:49:12 +08:00
Pan
ee101f4a78 Merge branch 'master' into deploy 2019-04-10 10:38:06 +08:00
Pan
ffc98f6e81 fix ad bug 2019-04-08 14:33:20 +08:00
Pan
caffe6f470 Merge branch 'master' into deploy 2019-04-08 14:13:53 +08:00
Pan
9b68a0835e Merge branch 'master' into deploy 2019-04-03 18:20:13 +08:00
Pan
1b96709250 Merge branch 'master' into deploy 2019-04-03 18:12:49 +08:00
Pan
86fa7dd654 Merge branch 'master' into deploy 2019-04-01 17:39:24 +08:00
Pan
a319df72e6 merge 2019-04-01 17:26:23 +08:00
Pan
3905ce454d Merge branch 'master' into deploy 2019-03-21 11:21:11 +08:00
Pan
082b62e960 Merge branch 'master' into deploy 2019-03-21 11:20:29 +08:00
Pan
ae02d6bb56 merge master 2019-03-19 15:42:05 +08:00
Pan
0e9f32f25a Merge branch 'master' into deploy 2019-03-15 18:13:50 +08:00
Pan
49ed3e2399 Merge branch 'master' into deploy 2019-03-12 11:14:19 +08:00
Pan
ae29f1b030 ADD 2019-03-08 14:01:16 +08:00
Pan
93b2a6c7ad rm 2019-03-08 14:00:54 +08:00
Pan
37c5c13560 Merge branch 'master' into deploy 2019-03-07 17:51:03 +08:00
Pan
d48fc1e711 rm 2019-03-07 15:45:26 +08:00
Pan
8f69cf7643 merge master 2019-03-07 15:34:42 +08:00
Pan
163a41fe8f perf[utils]: optimize code 2019-02-19 10:07:18 +08:00
Pan
002a525352 Merge branch 'master' into deploy 2019-02-15 16:20:09 +08:00
Pan
d0c0f9313c Merge branch 'master' into deploy 2019-02-15 10:05:41 +08:00
Pan
07bcdddc45 Merge branch 'master' into deploy 2019-02-13 16:34:26 +08:00
Pan
f1ed620fc2 Merge branch 'master' into deploy 2019-02-13 15:11:10 +08:00
Pan
10d9007f81 Merge branch 'master' into deploy 2019-01-30 14:09:51 +08:00
Pan
11264d163b merge 2019-01-23 11:36:59 +08:00
Pan
422037372c Merge branch 'master' into deploy 2019-01-17 11:11:03 +08:00
Pan
9a32666286 update 2019-01-15 16:20:15 +08:00
Pan
c39ef38f15 update 2019-01-15 14:24:36 +08:00
Pan
f6ede59859 Merge branch 'master' into deploy 2019-01-15 14:15:16 +08:00
Pan
92c25dacc6 update codefund 2018-12-30 21:13:40 +08:00
Pan
e8e530de54 Merge branch 'master' into deploy 2018-12-27 13:46:47 +08:00
Pan
b59d22ac18 Merge branch 'master' into deploy 2018-12-24 17:52:55 +08:00
Pan
51385c96b0 Merge branch 'master' into deploy 2018-12-04 18:18:33 +08:00
Pan
7c683b6f11 Merge branch 'master' into deploy 2018-12-04 14:02:12 +08:00
Pan
42da911819 Merge branch 'master' into deploy 2018-11-28 14:25:01 +08:00
Pan
d87c1b1944 Merge branch 'master' into deploy 2018-10-24 16:07:38 +08:00
Pan
01a0d9e5f0 Merge branch 'master' into deploy 2018-10-24 16:07:06 +08:00
Pan
07cf4791dc Merge branch 'master' into deploy 2018-10-19 14:56:37 +08:00
Pan
a543b0ba7c Merge branch 'master' into deploy 2018-10-17 14:16:11 +08:00
Pan
ec491002f8 Merge branch 'master' into deploy 2018-10-15 16:32:33 +08:00
Pan
4cf48ca656 change ad position 2018-10-12 14:06:22 +08:00
Pan
251d9c46d4 change id 2018-10-10 13:33:33 +08:00
Pan
1166017676 Merge branch 'master' into deploy 2018-10-09 16:12:14 +08:00
Pan
0cf4f2e518 fix bug 2018-10-09 13:25:23 +08:00
Pan
27725ac9d7 add ga 2018-10-08 18:26:39 +08:00
Pan
65ac600b54 fix[TagsView]: fixed visitedViews bug
Some strange bugs occur when the names of the routes are the same.
2018-10-08 18:19:48 +08:00
Pan
1f6010612f refine example demo 2018-10-08 18:19:48 +08:00
花裤衩
78be45fe04 perf[sidebar]: hightlight submenu when is active (#1154) 2018-10-08 18:19:48 +08:00
Pan
67d2b38e7b pref[Sidebar]: refine key 2018-10-08 18:19:48 +08:00
Pan
f7bbc6a9e9 tweak 2018-10-08 18:19:48 +08:00
花裤衩
c799c94da2 fix:[Sidebar]: fixed bug in iOS (#1152) 2018-10-08 18:19:48 +08:00
花裤衩
56e9ba491f feature[tagsView]: support middle click (#1149) 2018-10-08 18:19:48 +08:00
花裤衩
648868657a feature: add pathToRegexp to compile path (#1148) 2018-10-08 18:19:48 +08:00
花裤衩
f56385788c feature[Excel]: support bookType option (#1144)
Documentation: https://panjiachen.github.io/vue-element-admin-site/feature/component/excel.html
2018-10-08 18:19:48 +08:00
Pan
9563f2abe2 fix sidebar css bug #1142 2018-10-08 18:19:48 +08:00
zhaoguoweiLLHC
9f535925a6 fix[UploadExcel]: fixed bug when there were multiple components(#1136)
复用此组件时因为id不可重复的问题会导致onSuccess指向错误。
2018-10-08 18:19:48 +08:00
Pan
64e4ae7330 tweak code 2018-10-08 18:19:48 +08:00
花裤衩
24c29aeded fix[Sidebar]: link bug (#1134)
Fixed #1125
2018-10-08 18:19:48 +08:00
Pan
d0d5d91e8f remove unnecessary assets 2018-10-08 18:19:48 +08:00
Pan
7c11d5949a refine css 2018-10-08 15:50:44 +08:00
Pan
eb6b222ad2 add ad 2018-10-08 15:42:46 +08:00
Pan
28f80bc7cf Merge branch 'master' into deploy 2018-09-18 09:40:44 +08:00
Pan
0a65f69cef Merge branch 'master' into deploy 2018-09-07 17:58:59 +08:00
Pan
e28d3acf17 Merge branch 'master' into deploy 2018-08-31 16:25:18 +08:00
Pan
a5f373dcf7 Merge branch 'master' into deploy 2018-08-31 16:20:10 +08:00
Pan
1cfcd49fe2 Merge branch 'master' into deploy 2018-08-29 15:26:24 +08:00
Pan
33ca4a3ad9 change path 2018-08-20 10:27:56 +08:00
Pan
9bf85bfc97 Merge branch 'master' into deploy 2018-08-20 10:26:57 +08:00
Pan
0d38ff1c16 Merge branch 'master' into deploy 2018-08-19 16:59:08 +08:00
Pan
5935f7a56c Merge branch 'master' into deploy 2018-08-15 17:32:06 +08:00
Pan
ab526d1976 update 2018-08-08 17:15:57 +08:00
Pan
641790162d Merge branch 'master' into deploy 2018-07-16 11:19:08 +08:00
Pan
95709f7369 Merge branch 'master' into deploy 2018-07-13 11:28:24 +08:00
Pan
27012a4b52 touch .nojekyll 2018-07-13 11:28:06 +08:00
Pan
700cc822cd deploy 2018-07-12 12:44:53 +08:00
14 changed files with 278 additions and 8 deletions

88
config/index.js Normal file
View File

@@ -0,0 +1,88 @@
'use strict'
// Template version: 1.2.6
// see http://vuejs-templates.github.io/webpack for documentation.
const path = require('path')
module.exports = {
dev: {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {},
// Various Dev Server settings
// can be overwritten by process.env.HOST
// if you want dev by ip, please set host: '0.0.0.0'
host: 'localhost',
port: 9527, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: true,
errorOverlay: true,
notifyOnErrors: false,
poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
// Use Eslint Loader?
// If true, your code will be linted during bundling and
// linting errors and warnings will be shown in the console.
useEslint: true,
// If true, eslint errors and warnings will also be shown in the error overlay
// in the browser.
showEslintErrorsInOverlay: false,
/**
* Source Maps
*/
// https://webpack.js.org/configuration/devtool/#development
devtool: 'cheap-source-map',
// CSS Sourcemaps off by default because relative paths are "buggy"
// with this option, according to the CSS-Loader README
// (https://github.com/webpack/css-loader#sourcemaps)
// In our experience, they generally work as expected,
// just be aware of this issue when enabling this option.
cssSourceMap: false
},
build: {
// Template for index.html
index: path.resolve(__dirname, '../dist/index.html'),
// Paths
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: 'static',
/**
* You can set by youself according to actual condition
* You will need to set this if you plan to deploy your site under a sub path,
* for example GitHub pages. If you plan to deploy your site to https://foo.github.io/bar/,
* then assetsPublicPath should be set to "/bar/".
* In most cases please use '/' !!!
*/
assetsPublicPath: '/vue-element-admin/', // If you are deployed on the root path, please use '/'
/**
* Source Maps
*/
productionSourceMap: false,
// https://webpack.js.org/configuration/devtool/#production
devtool: 'source-map',
// Gzip off by default as many popular static hosts such as
// Surge or Netlify already gzip all static assets for you.
// Before setting to `true`, make sure to:
// npm install --save-dev compression-webpack-plugin
productionGzip: false,
productionGzipExtensions: ['js', 'css'],
// Run the build command with an extra argument to
// View the bundle analyzer report after build finishes:
// `npm run build:prod --report`
// Set to `true` or `false` to always turn it on or off
bundleAnalyzerReport: process.env.npm_config_report || false,
// `npm run build:prod --generate_report`
generateAnalyzerReport: process.env.npm_config_generate_report || false
}
}

25
deploy.sh Normal file
View File

@@ -0,0 +1,25 @@
#!/usr/bin/env sh
# abort on errors
set -e
# build
npm run build:prod -- --report
# navigate into the build output directory
cd dist
# if you are deploying to a custom domain
# echo 'www.example.com' > CNAME
#创建.nojekyll 防止Github Pages build错误
touch .nojekyll
git init
git add -A
git commit -m 'deploy'
# if you are deploying to https://<USERNAME>.github.io/<REPO>
git push -f git@github.com:PanJiaChen/vue-element-admin.git master:gh-pages
cd -

View File

@@ -12,7 +12,8 @@
"new": "plop",
"svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml",
"test:unit": "jest --clearCache && vue-cli-service test:unit",
"test:ci": "npm run lint && npm run test:unit"
"test:ci": "npm run lint && npm run test:unit",
"deploy": "bash deploy.sh"
},
"dependencies": {
"axios": "0.18.1",
@@ -37,6 +38,7 @@
"sortablejs": "1.8.4",
"tui-editor": "1.3.3",
"vue": "2.6.10",
"vue-analytics": "5.16.0",
"vue-count-to": "1.0.13",
"vue-i18n": "7.3.2",
"vue-router": "3.0.2",

View File

@@ -9,7 +9,70 @@
<title><%= webpackConfig.name %></title>
</head>
<body>
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CE7IK5QY&placement=panjiachengithubio" id="_carbonads_js"></script>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
<style>
#carbonads {
display: flex;
max-width: 280px;
background-color: hsl(0, 0%, 98%);
box-shadow: 0 1px 4px 1px hsla(0, 0%, 0%, .1);
z-index: 2;
position: fixed;
right: 0;
bottom: 0;
}
#carbonads a {
color: inherit;
text-decoration: none;
}
#carbonads a:hover {
color: inherit;
}
#carbonads span {
position: relative;
display: block;
overflow: hidden;
}
#carbonads .carbon-wrap {
display: flex;
}
.carbon-img {
display: block;
margin: 0;
line-height: 1;
}
.carbon-img img {
display: block;
}
.carbon-text {
font-size: 13px;
padding: 10px;
line-height: 1.4;
text-align: left;
}
.carbon-poweredby {
display: block;
padding: 8px 10px;
background: repeating-linear-gradient(-45deg, transparent, transparent 5px, hsla(0, 0%, 0%, .025) 5px, hsla(0, 0%, 0%, .025) 10px) hsla(203, 11%, 95%, .4);
text-align: center;
text-transform: uppercase;
letter-spacing: .5px;
font-weight: 600;
font-size: 9px;
line-height: 1;
}
</style>

View File

@@ -6,6 +6,15 @@
<script>
export default {
name: 'App'
name: 'App',
watch: {
'$route.path': {
handler: function() {
if (document.getElementById('carbonads')) {
window._carbonads && window._carbonads.refresh()
}
}
}
}
}
</script>

View File

@@ -0,0 +1,62 @@
<template>
<div id="codefund" />
</template>
<script>
import axios from 'axios'
export default {
data() {
return {
loadSuccess: true
}
},
watch: {
'$route.path': {
handler: function(val, oldVal) {
this.getCodefund()
}
}
},
mounted() {
this.getCodefund()
},
methods: {
getCodefund() {
if (this.$isServer) return
const codefundId = this.isGitee()
? '111'
: '96'
const template = 'horizontal'
axios.get(`https://codefund.io/properties/${codefundId}/funder.html?template=${template}`)
.then(function(response) {
document.getElementById('codefund').innerHTML = response.data
})
},
isGitee() {
const origin = window.location.origin
if (origin.includes('gitee.io')) {
return true
}
return false
},
loadError(oError) {
this.loadSuccess = false
}
}
}
</script>
<style lang="scss">
.cf-wrapper {
margin: 0 !important;
}
.fixed-header+#codefund {
margin-top: 50px;
}
.hasTagsView {
.fixed-header+#codefund {
margin-top: 84px;
}
}
</style>

1
src/icons/svg/donate.svg Normal file
View File

@@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1547533298036" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2337" xmlns:xlink="http://www.w3.org/1999/xlink" width="128" height="128"><defs><style type="text/css"></style></defs><path d="M799.835567 409.343969c-7.124258 0-17.45658 1.125637-26.720571 0-51.567469 15.005762-88.169085 59.042721-106.883309 106.749256-23.420409-29.151947-62.499449-52.284807-106.883309-53.374628-5.526877 1.088798-15.553231 2.187829-26.720572 0-75.839269 22.039969-132.216277 117.15628-120.243594 200.153576 32.484855 177.732937 359.762737 234.369865 360.730784 253.528204-0.968048 15.081487 15.32094-79.065753 66.802452-160.122861 51.226708-80.33977 121.281227-110.282732 106.883309-226.841402-13.123902-72.211649-76.882018-120.089076-146.96519-120.092145zM345.58176 903.057487c-0.069585 0-0.159636-0.097214-0.241501-0.152473-0.11461 0.100284-0.048095 0.152473 0.241501 0.152473z" p-id="2338"></path><path d="M733.033116 129.128963c-115.27442-8.884344-205.739804 94.891184-253.848499 173.466773-28.197202-65.910129-108.804055-148.775418-173.685761-146.778948-111.029746-0.483001-231.309156 76.278267-240.48719 213.497489C54.354955 565.682643 190.689017 610.455359 265.419022 729.590713c49.859571 75.175143 75.201749 170.110329 79.921237 173.314301 1.494027-1.316995 37.989219-12.054547 120.485095-53.222155-58.424644-36.85028-103.33346-92.574419-120.243594-160.122861-15.33015-119.972419 42.422182-261.34831 146.965189-280.216029 27.203572-11.225669 95.869465-34.045397 160.325475 26.686802 29.960359-66.275449 71.678506-82.142835 120.243595-93.405343 9.8176-1.951445 23.158443-3.786233 40.080858 0 53.009308-3.783163 105.278765 18.951631 146.965189 53.374628-2.736321-9.131985-1.047866-20.48352 0-26.686802 7.274684-149.553131-88.768743-228.409107-227.12895-240.184291z" p-id="2339"></path></svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -62,6 +62,7 @@ export default {
clipboardDemo: 'Clipboard',
i18n: 'I18n',
externalLink: 'External Link',
donate: 'Donate',
profile: 'Profile'
},
navbar: {

View File

@@ -62,6 +62,7 @@ export default {
clipboardDemo: 'Clipboard',
i18n: 'I18n',
externalLink: 'Enlace externo',
donate: 'Donate',
profile: 'Profile'
},
navbar: {

View File

@@ -62,6 +62,7 @@ export default {
clipboardDemo: 'Clipboard',
i18n: '国际化',
externalLink: '外链',
donate: '打赏',
profile: '个人中心'
},
navbar: {

View File

@@ -25,7 +25,7 @@ export default {
<style lang="scss" scoped>
.app-main {
/* 50= navbar 50 */
min-height: calc(100vh - 50px);
min-height: calc(100vh - 50px - 43px);
width: 100%;
position: relative;
overflow: hidden;
@@ -38,7 +38,7 @@ export default {
.hasTagsView {
.app-main {
/* 84 = navbar + tags-view = 50 + 34 */
min-height: calc(100vh - 84px);
min-height: calc(100vh - 84px - 43px);
}
.fixed-header+.app-main {

View File

@@ -20,6 +20,13 @@ import './utils/error-log' // error log
import * as filters from './filters' // global filters
import VueAnalytics from 'vue-analytics'
Vue.use(VueAnalytics, {
id: 'UA-109340118-1',
router
})
/**
* If you don't want to use mock-server
* you want to use MockJs for mock api

View File

@@ -71,9 +71,9 @@ export const constantRoutes = [
hidden: true
},
{
path: '/',
path: '',
component: Layout,
redirect: '/dashboard',
redirect: 'dashboard',
children: [
{
path: 'dashboard',
@@ -396,7 +396,17 @@ export const asyncRoutes = [
]
},
// 404 page must be placed at the end !!!
{
path: 'donate',
component: Layout,
children: [
{
path: 'https://panjiachen.gitee.io/vue-element-admin-site/zh/donate/',
meta: { title: 'donate', icon: 'donate' }
}
]
},
{ path: '*', redirect: '/404', hidden: true }
]

View File

@@ -24,7 +24,7 @@ module.exports = {
* In most cases please use '/' !!!
* Detail: https://cli.vuejs.org/config/#publicpath
*/
publicPath: '/',
publicPath: '/vue-element-admin/',
outputDir: 'dist',
assetsDir: 'static',
lintOnSave: process.env.NODE_ENV === 'development',