Skip to content

Commit

Permalink
Initial project
Browse files Browse the repository at this point in the history
  • Loading branch information
maicong committed Aug 10, 2018
0 parents commit 9504511
Show file tree
Hide file tree
Showing 17 changed files with 6,267 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"presets": [
[
"env",
{
"modules": false,
"useBuiltins": true,
"targets": {
"node": [">1%", "last 2 versions", "not ie < 10"]
}
}
],
"stage-0"
],
"plugins": [
"transform-runtime"
]
}
67 changes: 67 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# 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

# next.js build output
.next

Thumbs.db
.DS_Store

dist/
doutuime-*.zip
32 changes: 32 additions & 0 deletions .postcssrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"modules": false,
"plugins": {
"postcss-preset-env": {
"stage": 2,
"browsers": [
"Chrome >= 28",
"Firefox >= 28",
"Edge >= 12",
"Explorer >= 9",
"Safari >= 5.1",
"iOS >= 7",
"Android >= 4",
"ExplorerMobile >= 11",
"ChromeAndroid >= 54",
"FirefoxAndroid >= 50",
"UCAndroid >= 11",
"OperaMobile >= 12.1",
"BlackBerry >= 10",
"Samsung >= 4"
],
"autoprefixer": {
"remove": false
}
},
"cssnano": {
"preset": "default",
"reduceIdents": false,
"zindex": false
}
}
}
16 changes: 16 additions & 0 deletions .uglifyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"ie8": false,
"ecma": 5,
"mangle": true,
"sourceMap": false,
"compress": {
"warnings": false,
"drop_console": true,
"drop_debugger": true
},
"output": {
"comments": false,
"beautify": false,
"ascii_only": true
}
}
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) 2018 MaiCong

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.
57 changes: 57 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# 抖腿么

## 说明

啥也别说了,Everybody,跟着节奏,抖起来。

(感谢这款源码 [https://codepen.io/noeldelgado/pen/EaNjBy](https://codepen.io/noeldelgado/pen/EaNjBy))

💃 [在线演示](https://doutui.me/)
📦 [源码下载 - Gitee](https://gitee.com/maicong/doutuime/releases)
📦 [源码下载 - Github](https://github.com/maicong/doutuime/releases)

## 使用

### 目录说明

`dist`: 构建后的目录

`src`: 源文件目录

`music`: 抖腿歌曲目录

### 配置信息

编辑 `config.json` 进行相关配置

> 添加新的音乐,需要先将音乐文件放入 music 目录,再讲音乐文件名放入 musicList
```javascript
{
"musicCDN": "", // music 目录所在的 CDN 地址
"musicList": [] // 歌曲列表
}

```

### 命令说明

```bash
# 安装依赖
yarn install

# 开发调试
yarn run dev

# 构建成品
yarn run build

# 打包文件
yarn run zip
```

### 协议

MIT License

Copyright (c) 2018 MaiCong
8 changes: 8 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"musicCDN": "",
"musicList": [
"Auvic - Starships (Original Mix).mp3",
"Rudebrat - Whiskey Dream VIP (Original Mix).mp3",
"Tobu - Catch It.mp3"
]
}
Binary file added music/Auvic - Starships (Original Mix).mp3
Binary file not shown.
Binary file not shown.
Binary file added music/Tobu - Catch It.mp3
Binary file not shown.
26 changes: 26 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "doutuime",
"version": "0.1.0",
"description": "Source code for https://doutui.me/",
"repository": "https://github.com/maicong/doutuime",
"author": "MaiCong",
"license": "MIT",
"scripts": {
"dev": "del -f dist && cpy 'music/*.mp3' dist/music && parcel src/index.html --no-autoinstall --no-cache",
"build": "del -f dist && cpy 'music/*.mp3' dist/music && parcel build src/index.html --no-source-maps --no-cache",
"zip": "cross-conf-env zip -r npm_package_name-npm_package_version.zip dist"
},
"dependencies": {
"babel-core": "^6.26.3",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.7.0",
"babel-preset-stage-0": "^6.24.1",
"cpy-cli": "^2.0.0",
"cross-conf-env": "^1.1.2",
"cssnano": "^4.0.5",
"del-cli": "^1.1.0",
"parcel-bundler": "^1.9.7",
"postcss-preset-env": "^5.3.0"
}
}
Binary file added src/doutuime.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!DOCTYPE html>
<html lang="zh-CN">

<head>
<meta charset="UTF-8">
<title>抖腿么</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
<meta name="author" content="maicong.me">
<meta name="keywords" content="抖腿,抖腿么">
<meta name="description" content="嘿,抖腿么,Everybody 抖起来">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="抖腿么">
<meta name="application-name" content="抖腿么">
<meta name="format-detection" content="address=no, date=no, email=no, telephone=no">
<link rel="canonical" href="https://doutui.me/">
<link rel="stylesheet" href="./main.css">
<link rel="shortcut icon" href="./favicon.png" type="image/png">
</head>

<body>
<div id="loading">
<p>Loading&hellip;</p>
<p class="msg">- Initializing -</p>
</div>
<div id="control"></div>
<div id="no-audio">
<h1>No Web Audio API</h1>
<p>Sorry, this experiment requires the Web Audio API.</p>
<a href="http://caniuse.com/#feat=audio-api" target="_blank">See browser support</a>
</div>
<script src="./main.js"></script>
</body>

</html>
Loading

0 comments on commit 9504511

Please sign in to comment.