Skip to content

Commit

Permalink
Update To Vue-cli 5
Browse files Browse the repository at this point in the history
- Update Vue-cli5
- Add sitemap-webpack-plugin
- Add Robots.txt
- Add prerender-spa-plugin-next
- Add compression-webpack-plugin
- Remove GPL license
  • Loading branch information
Mintimate committed Feb 12, 2022
1 parent a1b1a3d commit e4846d8
Show file tree
Hide file tree
Showing 15 changed files with 19,918 additions and 17,323 deletions.
339 changes: 0 additions & 339 deletions LICENSE

This file was deleted.

15 changes: 6 additions & 9 deletions OnlineToolFrontEnd/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# 前端/FrontEnd
基于Vue3.x,同时主要的技术:
- bootstrap5.0
- element UI部分组件
# onlinetoolfrontend

## Project setup
```
Expand All @@ -18,10 +15,10 @@ npm run serve
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).

# Tips
`vue.config`内存放后端API地址链接。

`until/request`内存放Vue的router的数据代理链接,如果需要自己部署 ,记得更改。
36,464 changes: 19,619 additions & 16,845 deletions OnlineToolFrontEnd/package-lock.json

Large diffs are not rendered by default.

25 changes: 13 additions & 12 deletions OnlineToolFrontEnd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,39 @@
"name": "onlinetoolfrontend",
"version": "0.1.0",
"private": true,
"lintOnSave": false,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"@kangc/v-md-editor": "^2.3.13",
"@vue/cli": "^5.0.0-rc.2",
"axios": "^0.25.0",
"bootstrap": "^5.1.3",
"clipboard": "^2.0.9",
"codemirror": "^5.65.1",
"compression-webpack-plugin": "^6.1.0",
"core-js": "^3.6.5",
"element-plus": "^1.3.0-beta.9",
"element-plus": "^2.0.1",
"highlight.js": "^11.4.0",
"vue": "^3.0.0",
"vue-meta": "^3.0.0-alpha.2",
"vue-router": "^4.0.0-0",
"vuex": "^4.0.0-0",
"webpack": "^4.46.0"
"vuex": "^4.0.0-0"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-plugin-router": "~4.5.0",
"@vue/cli-plugin-vuex": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"@vue/cli-plugin-babel": "~5.0.0-rc.3",
"@vue/cli-plugin-eslint": "~5.0.0-rc.3",
"@vue/cli-plugin-router": "~5.0.0-rc.3",
"@vue/cli-plugin-vuex": "~5.0.0-rc.3",
"@vue/cli-service": "~5.0.0-rc.3",
"@vue/compiler-sfc": "^3.0.0",
"babel-eslint": "^10.1.0",
"compression-webpack-plugin": "^9.2.0",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^7.0.0",
"prerender-spa-plugin": "^3.4.0",
"prerender-spa-plugin-next": "^4.1.8",
"sitemap-webpack-plugin": "^1.1.1",
"vue-cli-plugin-element": "^1.0.1"
},
"eslintConfig": {
Expand All @@ -55,5 +55,6 @@
"> 1%",
"last 2 versions",
"not dead"
]
],
"lintOnSave": false
}
1 change: 0 additions & 1 deletion OnlineToolFrontEnd/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<link rel="icon" href="<%= BASE_URL %>favicon.svg">
<title>在线工具箱-By Mintimate</title>
<link rel="stylesheet" href="//at.alicdn.com/t/font_2695717_r371m593q6e.css">
<link rel="stylesheet" href="/autoDarkMode/css/autoDark.css">
</head>
<body>
<noscript>
Expand Down
5 changes: 5 additions & 0 deletions OnlineToolFrontEnd/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
User-agent: *
Disallow: /oneindexM
Disallow: /*Api*
Disallow: /data
SiteMap: https://tool.mintimate.cn/sitemap.xml
Binary file added OnlineToolFrontEnd/src/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 58 additions & 0 deletions OnlineToolFrontEnd/src/components/HelloWorld.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<template>
<div class="hello">
<h1>{{ msg }}</h1>
<p>
For a guide and recipes on how to configure / customize this project,<br>
check out the
<a href="https://cli.vuejs.org" target="_blank" rel="noopener">vue-cli documentation</a>.
</p>
<h3>Installed CLI Plugins</h3>
<ul>
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel" target="_blank" rel="noopener">babel</a></li>
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint" target="_blank" rel="noopener">eslint</a></li>
</ul>
<h3>Essential Links</h3>
<ul>
<li><a href="https://vuejs.org" target="_blank" rel="noopener">Core Docs</a></li>
<li><a href="https://forum.vuejs.org" target="_blank" rel="noopener">Forum</a></li>
<li><a href="https://chat.vuejs.org" target="_blank" rel="noopener">Community Chat</a></li>
<li><a href="https://twitter.com/vuejs" target="_blank" rel="noopener">Twitter</a></li>
<li><a href="https://news.vuejs.org" target="_blank" rel="noopener">News</a></li>
</ul>
<h3>Ecosystem</h3>
<ul>
<li><a href="https://router.vuejs.org" target="_blank" rel="noopener">vue-router</a></li>
<li><a href="https://vuex.vuejs.org" target="_blank" rel="noopener">vuex</a></li>
<li><a href="https://github.com/vuejs/vue-devtools#vue-devtools" target="_blank" rel="noopener">vue-devtools</a></li>
<li><a href="https://vue-loader.vuejs.org" target="_blank" rel="noopener">vue-loader</a></li>
<li><a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">awesome-vue</a></li>
</ul>
</div>
</template>

<script>
export default {
name: 'HelloWorld',
props: {
msg: String
}
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
margin: 40px 0 0;
}
ul {
list-style-type: none;
padding: 0;
}
li {
display: inline-block;
margin: 0 10px;
}
a {
color: #42b983;
}
</style>
17 changes: 8 additions & 9 deletions OnlineToolFrontEnd/src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,20 +133,19 @@ const routes = [
keywords:"CDN,GitHub,下载加速"
}
},
component: () => import(/* webpackChunkName: "about" */ '../views/networkTool /GitHub.vue')
component: () => import('../views/networkTool /GitHub.vue')
},
{
path: '/about',
name: 'About',
meta: {
path:'/oneindexM',
name:'oneindexM',
meta:{
metaInfo: {
title: "关于-在线工具箱",
description: "关于本项目",
keywords:"Mintimate,打赏,捐赠,技术支持"
title: "OneIndex桥接页面",
description: "为Oneindex的安装提供网络桥接",
}
},
component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
}
component: () => import('../views/networkTool /oneIndex.vue')
},
]

const router = createRouter({
Expand Down
5 changes: 0 additions & 5 deletions OnlineToolFrontEnd/src/views/About.vue

This file was deleted.

6 changes: 3 additions & 3 deletions OnlineToolFrontEnd/src/views/markdownView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ export default {
"\n" +
"## 教程\n" +
"如果你并不会使用Markdown语句,可以 参考教程:\n" +
"- [Markdown菜鸟教程}(https://www.runoob.com/markdown/md-tutorial.html)\n" +
"- [Markdown菜鸟教程](https://www.runoob.com/markdown/md-tutorial.html)\n" +
"\n" +
"# 版权所有\n" +
"- Mintimate's Blog:[https://www.mintimate.cn] (https://www.mintimate.cn)\n" +
"- Mintimate's Blog:[https://www.mintimate.cn](https://www.mintimate.cn)\n" +
"- Mintimate's Bilibili:[https://space.bilibili.com/355567627](https://space.bilibili.com/355567627)\n" +
"## 感谢\n" +
"- [Vue3](https://github.com/vuejs/vue-next)\n" +
Expand Down Expand Up @@ -203,4 +203,4 @@ li a{
display: revert;
}
}
</style>
</style>
2 changes: 1 addition & 1 deletion OnlineToolFrontEnd/src/views/networkTool /GitHub.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default {
this.submitDisabled = false
this.workMode="Download"
} else if (
new RegExp("^https://github.com/\\w+/\\w+(?:.git)?$").test(newValue)
new RegExp("^https://github.com/\\w+/(?:\\w|(?:\\.|\\-))+(?:.git)?$").test(newValue)
) {
this.copyGitUrl="git clone "+window.location.origin+"/ghs/" +newValue
this.submitDisabled = false
Expand Down
97 changes: 97 additions & 0 deletions OnlineToolFrontEnd/src/views/networkTool /oneIndex.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
<template>
<div class="container">
<div class="row pt-3">
<div class="col-12 mt-2 mb-1">
<div id="tittle" class="text-center">
<span style="font-size: x-large;">
<strong>
OneIndex桥接
</strong>
</span>
</div>
<div class="card">
<h5 class="card-header">操作提示</h5>
<div class="card-body text-center">
<code v-if="newLinkDisabled">{{ info }}</code>
<div v-else class="d-grid gap-2 col-6 mx-auto">
<a class="btn btn-success" :href=newLink target="_self">点击这里,继续安装</a>
</div>
</div>
</div>
<div class="row mt-5">
<div class="col-12">
<div class="card">
<p class="card-header">使用说明</p>
<div class="card-body">
<div>
<p>警告⚠️:</p>
<ul>
<li><strong>请勿浏览器地址栏直接访问本页面=>没有任何实际作用,出了看到"构建失败"的提示。</strong></li>
</ul>
<p>桥接模式:</p>
<ul>
<li>通过伪静态,让OneDrive服务器 ,以为是App重定向验证任务</li>
</ul>
<p>教程&资源</p>
<ul>
<li>OneIndexM仓库地址:https://github.com/Mintimate/OneindexM</li>
<li>搭建教程:https://www.mintimate.cn/2020/09/22/oneindex/</li>
</ul>
</div>
<div>
注意:公共免费资源,请合理、适度使用(*≧ω≦)。
</div>
</div>
</div>
</div>
</div>

</div>

</div>
</div>
</template>

<script>
import {useRoute} from "vue-router"
import {ref} from "vue";
export default {
name: "oneIndex",
setup() {
let info = ref("……等待程序响应……")
let newLink
let newLinkDisabled = ref(true)
const query = useRoute().query
const url = query.state
const code = query.code
function makeLink() {
if (url == undefined || code == undefined) {
console.log("构建失败")
this.info = "构建失败,请重新调试"
} else {
this.newLinkDisabled = false
this.newLink = decodeURIComponent(url) + "?code=" + code
}
};
return {
newLink,
newLinkDisabled,
info,
makeLink,
}
},
mounted() {
this.makeLink()
}
}
</script>

<style scoped>
code {
border: 1px solid #cbcbcb;
background: #f2f2f2;
font-size: 2.5rem;
padding: 6px;
}
</style>
Loading

0 comments on commit e4846d8

Please sign in to comment.