Skip to content

Commit

Permalink
更新至 2.0 版本
Browse files Browse the repository at this point in the history
  • Loading branch information
Ice-Hazymoon committed Jul 25, 2019
0 parents commit 6475a0b
Show file tree
Hide file tree
Showing 326 changed files with 32,635 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"projectName": "MikuTools",
"projectOwner": "Ice-Hazymoon",
"files": ["README.md"],
"imageSize": 100,
"contributorsPerLine": 7,
"contributors": [
{
"login": "Git-So",
"name": "Git-So",
"avatar_url": "https://avatars0.githubusercontent.com/u/22292451?v=4",
"profile": "https://github.com/Git-So",
"contributions": [
"code"
]
},
{
"login": "KeJunMao",
"name": "KeJunMao",
"avatar_url": "https://avatars0.githubusercontent.com/u/18414281?v=4",
"profile": "https://github.com/KeJunMao",
"contributions": [
"code",
"question"
]
},
{
"login": "tamshen",
"name": "tamshen",
"avatar_url": "https://avatars0.githubusercontent.com/u/18414281?v=4",
"profile": "https://github.com/tamshen",
"contributions": [
"design"
]
},
{
"login": "houko",
"name": "houko",
"avatar_url": "https://avatars0.githubusercontent.com/u/12625278?v=4",
"profile": "https://github.com/houko",
"contributions": [
"translation"
]
},
{
"login": "bougieL",
"name": "bougieL",
"avatar_url": "https://avatars0.githubusercontent.com/u/36102904?v=4",
"profile": "https://github.com/bougieL",
"contributions": [
"code",
"ideas"
]
}
]
}
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 4
tab_width = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

root = true
6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
static/
bower_components/
build/Release
node_modules/
.nuxt
dist
41 changes: 41 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
module.exports = {
root: true,
env: {
browser: true,
node: true
},
parserOptions: {
parser: 'babel-eslint'
},
extends: [
"eslint:recommended",
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
"plugin:vue/recommended",
"plugin:prettier/recommended"
],
// required to lint *.vue files
plugins: [
'vue'
],
// add your custom rules here
rules: {
"vue/max-attributes-per-line": "off",
"vue/html-indent": ["error", 4, {
"attribute": 1,
"closeBracket": 0,
"alignAttributesVertically": true,
"ignores": []
}],
"vue/html-self-closing": ["error", {
"html": {
"void": "any",
"normal": "never",
"component": "always"
},
"svg": "always",
"math": "always"
}],
"prettier/prettier": ["error"]
}
}
89 changes: 89 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Created by .ignore support plugin (hsz.mobi)
### Node template
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# Nuxt generate
dist

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless

# IDE
.idea

# Service worker
sw.*

yarn.lock
package-lock.json

ssl
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"tabWidth": 4,
"singleQuote": true,
"bracketSpacing": true,
"semi": true
}
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
language: node_js
node_js:
- "10"
script:
- echo "hello world"
install:
- yarn install
- yarn run generate
cache:
directories:
- node_modules
after_script:
- cd ./dist
- git init
- git config user.name "Ice-Hazymoon"
- git config user.email "[email protected]"
- git add .
- git commit -m "automated build"
- git push --quiet --force https://${REPO_TOKEN}@github.com/Ice-Hazymoon/MikuTools.git master
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Ice-Hazymoon

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
OR OTHER DEALINGS IN THE SOFTWARE.
69 changes: 69 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<p align="center"><img src="./static/icon.png"
alt="Logo" width="128" height="128" style="max-width: 100%;"></p>
<h1 align="center">Miku Tools</h1>
<p align="center">一个轻量的工具集合</p>
<p align="center">
<a href="https://github.com/Ice-Hazymoon/MikuTools/blob/master/LICENSE">
<img src="https://img.shields.io/github/license/Ice-Hazymoon/MikuTools.svg" alt="MIT License" />
</a>
<a href="https://vuejs.org/">
<img src="https://img.shields.io/badge/nuxt.js-v5.x-green.svg" alt="for Nuxt.js 5">
</a>
<a href="http://imiku.me/">
<img src="https://badgen.net/badge/author/Ice-Hazymoon/f2a" alt="Author">
</a>
<a href="https://miku.tools/">
<img src="https://img.shields.io/badge/%F0%9F%9A%80-open--in--browser-e10079.svg" alt="Live Demo">
</a>
</p>

## 介绍

本项目是 [https://miku.tools](https://miku.tools) 的开源版本,保留了部分无需后端的功能。

> [https://miku.tools](https://miku.tools)
## 预览

![preview](./static/preview.png)

## 开发

```bash
yarn install
yarn dev
```

## 构建

```bash
yarn install
yarn generate
```

## 不会前端开发或不想安装相关环境

> 对于不会打包程序的同学,准备好了一份打包好开箱即用的版本
下载 [dist.7z](https://raw.githubusercontent.com/Ice-Hazymoon/MikuTools/master/dist.7z),直接上传解压至虚拟主机或网站根目录即可使用

## 其他

Q: 后端什么时候开源?
A: 因为本职不是后端,所以代码写的太垃圾(虽然前端也没好到哪去),无论安全性还是性能方面都有所欠缺,所以暂时不会开源。

Q: 我应该如何添加新功能?
A: 参考 `/pages/*.vue` 中的文件新建页面,善用 **CTRL+F** 进行相关模块的查找,然后在 `/tools/index.js` 里添加相关的工具信息。对前端新人不太友好

Q: 我可以参与开发 MikuTools 吗?
A: 当然可以,随时欢迎提交 PR,会视情况添加到 [MikuTools](https://miku.tools) 主站

Q: 我能给 MikuTools 提新功能吗?
A: issues 区随时欢迎你。

Q: MikuTools 的主要技术栈是什么?
A: Vue 全家桶 + [Nuxt.js](https://zh.nuxtjs.org/)

## 更新

本仓库仅供一个开源版本的备份,并不用于纪录提交纪录等,当[主站](https://miku.tools)更新到一定程度上的稳定版本时,才会重新更新该仓库
7 changes: 7 additions & 0 deletions assets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# ASSETS

**This directory is not required, you can delete it if you don't want to use it.**

This directory contains your un-compiled assets such as LESS, SASS, or JavaScript.

More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/assets#webpacked).
Binary file added assets/alipay.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file added assets/audio/white-noise/preset_wakeup_ocean.m4a
Binary file not shown.
Binary file not shown.
Binary file added assets/avatar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 6475a0b

Please sign in to comment.