Skip to content
This repository has been archived by the owner on Aug 24, 2020. It is now read-only.

pull request #50

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Helicoir/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# editorconfig.org
root = true

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

[*.md]
trim_trailing_whitespace = false
32 changes: 32 additions & 0 deletions Helicoir/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
module.exports = {
root: true,
env: {
browser: true,
node: true
},
parserOptions: {
parser: 'babel-eslint'
},
extends: [
'@nuxtjs',
'prettier',
'prettier/vue',
'plugin:prettier/recommended',
'plugin:nuxt/recommended',
'@nuxtjs/eslint-config-typescript'
],
plugins: [
'prettier'
],
// add your custom rules here
rules: {
'prettier/prettier': ['error', {
'singleQuote': true
}],
'indent': ['error', 2],
'no-unused-vars': 1,
'@typescript-eslint/no-unused-vars': 1
'space-before-function-paren': 1
}
}

90 changes: 90 additions & 0 deletions Helicoir/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# 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 / Editor
.idea

# Service worker
sw.*

# macOS
.DS_Store

# Vim swap files
*.swp
5 changes: 5 additions & 0 deletions Helicoir/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"semi": false,
"arrowParens": "always",
"singleQuote": true
}
16 changes: 16 additions & 0 deletions Helicoir/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Git-push-hackathon

id: [email protected]
pw: gphack-test

で認証時は通ってください

## build

ローカルに保存後、
$ yarn
$ yarn dev

の順でコマンドを実行すると、5884番ポートにて開けます

(開発が終わらなかったため、せめてもの努力の証としてプルリクを出します)
12 changes: 12 additions & 0 deletions Helicoir/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"~/*": ["./*"],
"@/*": ["./*"],
"~~/*": ["./*"],
"@@/*": ["./*"]
}
},
"exclude": ["node_modules", ".nuxt", "dist"]
}
83 changes: 83 additions & 0 deletions Helicoir/nuxt.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
export default {
mode: 'universal',
srcDir: 'src/',
head: {
title: process.env.npm_package_name || 'Curio!',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
hid: 'description',
name: 'description',
content: process.env.npm_package_description || ''
}
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }]
},
loading: { color: '#fff' },
css: [
{ src: '~/assets/css/html5-reset.css', lang: 'css' },
// { src: '~/assets/scss/constants.scss', lang: 'scss' },
// { src: '~/assets/scss/includes.scss', lang: 'scss' },
// { src: '~/assets/scss/common.scss', lang: 'scss' }
],
plugins: [
'~/plugins/composition-api'
],
/*
** Nuxt.js dev-modules
*/
buildModules: [
'@nuxtjs/eslint-module',
['@nuxt/typescript-build', {
typeCheck: true
}],
'nuxt-typed-vuex'
],
modules: [
'@nuxtjs/axios',
'@nuxtjs/dotenv',
'@nuxtjs/style-resources',
'nuxt-client-init-module',
'nuxt-fontawesome'
],
axios: {
proxy: true,
prefix: '/api'
},
proxy: {
'/api': {
target: 'https://www.googleapis.com/youtube/v3/',
pathRewrite: {
'^/api': '/'
}
}
},
styleResources: {
scss: [
'~/assets/scss/constants.scss',
'~/assets/scss/includes.scss',
'~/assets/scss/common.scss'
]
},
fontawesome: {
imports: [
{
set: '@fortawesome/free-solid-svg-icons',
icons: ['fas']
}
]
},
env: {
API_KEY: process.env.API_KEY
},
build: {
transpile: [
/typed-vuex/,
],
/*
** You can extend webpack config here
*/
extend(config, ctx) {}
}
}
45 changes: 45 additions & 0 deletions Helicoir/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "CURIO",
"version": "1.0.0",
"description": "by Helicoir",
"author": "Helicoir",
"private": true,
"scripts": {
"dev": "nuxt-ts --port 5884 && node -r dotenv/config services/index.js tsconfig-paths/register ./node_modules/@nuxt/typescript-runtime/bin/nuxt-ts.js",
"build": "nuxt-ts build && node -r dotenv/config services/index.js tsconfig-paths/register ./node_modules/@nuxt/typescript-runtime/bin/nuxt-ts.js",
"start": "nuxt-ts start && node -r dotenv/config services/index.js tsconfig-paths/register ./node_modules/@nuxt/typescript-runtime/bin/nuxt-ts.js",
"generate": "nuxt-ts generate && node -r dotenv/config services/index.js tsconfig-paths/register ./node_modules/@nuxt/typescript-runtime/bin/nuxt-ts.js",
"lint": "eslint --ext .js,.ts,.vue --ignore-path .gitignore ."
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.27",
"@fortawesome/free-solid-svg-icons": "^5.12.1",
"@fortawesome/vue-fontawesome": "^0.1.9",
"@nuxt/typescript-runtime": "^0.3.9",
"@nuxtjs/axios": "^5.3.6",
"@nuxtjs/dotenv": "^1.4.0",
"@nuxtjs/style-resources": "^1.0.0",
"@types/js-cookie": "^2.2.4",
"@vue/composition-api": "^0.3.4",
"js-cookie": "^2.2.1",
"node-sass": "^4.13.1",
"nuxt": "^2.0.0",
"nuxt-client-init-module": "^0.1.8",
"nuxt-fontawesome": "^0.4.0",
"nuxt-typed-vuex": "^0.1.16",
"prettier": "^1.19.1",
"sass-loader": "^8.0.2",
"tsconfig-paths": "^3.9.0"
},
"devDependencies": {
"@nuxt/typescript-build": "^0.5.6",
"@nuxtjs/eslint-config": "^2.0.0",
"@nuxtjs/eslint-config-typescript": "^1.0.2",
"@nuxtjs/eslint-module": "^1.0.0",
"babel-eslint": "^10.0.1",
"eslint": "^6.1.0",
"eslint-config-prettier": "^6.10.0",
"eslint-plugin-nuxt": ">=0.4.2",
"eslint-plugin-prettier": "^3.1.2"
}
}
Loading