Yoonjunhyeon

change front design

> 1%
last 2 versions
not dead
[*.{js,jsx,ts,tsx,vue}]
indent_style = space
indent_size = 2
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 200
module.exports = {
root: true,
env: {
browser: true,
es6: true,
node: true,
},
extends: [
'plugin:vue/essential',
'@vue/airbnb',
],
parserOptions: {
parser: 'babel-eslint',
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'linebreak-style': ['error', 'unix'],
'max-len': ['error', { code: 200 }],
},
};
.DS_Store
node_modules
/dist
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
# front
## Project setup
```
yarn install
```
### Compiles and hot-reloads for development
```
yarn serve
```
### Compiles and minifies for production
```
yarn build
```
### Lints and fixes files
```
yarn lint
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset',
],
};
{
"name": "front",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"@mdi/font": "^3.6.95",
"axios": "^0.19.2",
"core-js": "^3.6.5",
"filepond": "^4.13.4",
"filepond-plugin-file-validate-type": "^1.2.5",
"filepond-plugin-image-preview": "^4.6.2",
"moment": "^2.24.0",
"roboto-fontface": "*",
"vue": "^2.6.11",
"vue-filepond": "^6.0.2",
"vue-router": "^3.1.6",
"vuetify": "^2.2.11",
"vuex": "^3.1.3"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.3.0",
"@vue/cli-plugin-eslint": "~4.3.0",
"@vue/cli-plugin-router": "~4.3.0",
"@vue/cli-plugin-vuex": "~4.3.0",
"@vue/cli-service": "~4.3.0",
"@vue/eslint-config-airbnb": "^5.0.2",
"babel-eslint": "^10.1.0",
"eslint": "^6.7.2",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-vue": "^6.2.2",
"node-sass": "^4.12.0",
"sass": "^1.19.0",
"sass-loader": "^8.0.2",
"vue-cli-plugin-vuetify": "~2.0.5",
"vue-template-compiler": "^2.6.11",
"vuetify-loader": "^1.3.0"
}
}
No preview for this file type
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
<template>
<v-app>
<v-app-bar app color="primary" elevation="1" hide-on-scroll>
<div style="color: #ffffff; font-size: 20px; font-weight: 400;">Youtube Auto Tagger</div>
<v-spacer></v-spacer>
<v-tooltip bottom>
<template v-slot:activator="{ on }">
<v-btn icon v-on="on" color="white" @click="clickInfo=true">
<v-icon size="30">mdi-information</v-icon>
</v-btn>
</template>
<span>Service Info</span>
</v-tooltip>
</v-app-bar>
<v-dialog v-model="clickInfo" max-width="600" class="pa-2">
<v-card elevation="0" outlined class="pa-4">
<v-row justify="center" class="mx-0 mb-8 mt-2">
<v-icon color="lightblue">mdi-power-on</v-icon>
<div style="text-align: center; font-size: 22px; font-weight: 400; color: #343a40;">
Information of This Service
</div>
<v-icon color="lightblue">mdi-power-on</v-icon>
</v-row>
<div>Used Opensource</div>
</v-card>
</v-dialog>
<v-content>
<router-view />
</v-content>
<v-footer>
<v-row justify="center">
<v-avatar size="25" tile style="border-radius: 4px">
<v-img src="./assets/logo.png"></v-img>
</v-avatar>
<a href="http://khuhub.khu.ac.kr/2020-1-capstone-design1/PKH_Project1">
<div style="margin-left: 4px; font-size: 16px; color: #5a5a5a; font-weight: 400">
Profit-Hunter
</div>
</a>
</v-row>
</v-footer>
</v-app>
</template>
<script>
export default {
name: 'App',
data() {
return {
clickInfo: false,
};
},
};
</script>
<style lang="scss">
a:hover {text-decoration: none;}
a:link {text-decoration: none;}
a:visited {text-decoration: none;}
</style>
<template>
<div>
<file-pond
name="bin"
ref="pond"
allow-multiple="false"
accepted-file-types="video/mp4, video/avi"
max-files="1"
:server="server"
v-bind:files="myFiles"
v-on:init="handleFilePondInit"
v-on:processfile="onload"
/>
</div>
</template>
<script>
// Import Vue FilePond
import vueFilePond from 'vue-filepond';
// Import FilePond styles
import 'filepond/dist/filepond.min.css';
// Import FilePond plugins
// Please note that you need to install these plugins separately
// Import image preview plugin styles
import 'filepond-plugin-image-preview/dist/filepond-plugin-image-preview.min.css';
// Import image preview and file type validation plugins
import FilePondPluginFileValidateType from 'filepond-plugin-file-validate-type';
import FilePondPluginImagePreview from 'filepond-plugin-image-preview';
// Create component
const FilePond = vueFilePond(
FilePondPluginFileValidateType,
FilePondPluginImagePreview,
);
export default {
name: 'app',
data() {
return {
myFiles: [],
server: {
url: `${this.$apiRootPath}upload/video`,
process: {},
},
};
},
methods: {
handleFilePondInit() {
console.log('FilePond has initialized');
// FilePond instance methods are available on `this.$refs.pond`
},
onload(e, r) {
console.log(r);
// this.$store.dispatch(r);
},
},
components: {
FilePond,
},
};
</script>
<style scoped>
.filepond--item {
width: calc(50% - .5em);
}
.filepond--panel-root {
background-color: transparent;
border: 2px solid #2c3340;
}
</style>
import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import vuetify from './plugins/vuetify';
import 'roboto-fontface/css/roboto/roboto-fontface.css';
import '@mdi/font/css/materialdesignicons.css';
Vue.config.productionTip = false;
new Vue({
router,
store,
vuetify,
render: (h) => h(App),
}).$mount('#app');
import Vue from 'vue';
import Vuetify from 'vuetify/lib';
Vue.use(Vuetify);
export default new Vuetify({
theme: {
themes: {
light: {
primary: '#7DC1E8',
secondary: '#FFCE67',
accent: '#ddeefc',
error: '#FF5252',
info: '#2196F3',
blue: '#173f5f',
lightblue: '#72b1e4',
success: '#2779bd',
warning: '#12283a',
grey300: '#eceeef',
grey500: '#aaaaaa',
grey700: '#5a5a5a',
grey900: '#212529',
},
dark: {
primary: '#7DC1E8',
secondary: '#FFCE67',
accent: '#ddeefc',
error: '#FF5252',
info: '#2196F3',
blue: '#173f5f',
lightblue: '#72b1e4',
success: '#2779bd',
warning: '#12283a',
grey300: '#eceeef',
grey500: '#aaaaaa',
grey700: '#5a5a5a',
grey900: '#212529',
},
},
},
});
import Vue from 'vue';
import VueRouter from 'vue-router';
import axios from 'axios';
import Home from '../views/Home.vue';
Vue.prototype.$axios = axios;
const apiRootPath = process.env.NODE_ENV !== 'production'
? 'http://localhost:8000/api/'
: '/api/';
Vue.prototype.$apiRootPath = apiRootPath;
axios.defaults.baseURL = apiRootPath;
Vue.use(VueRouter);
const routes = [
{
path: '/',
name: 'Home',
component: Home,
},
];
const router = new VueRouter({
mode: 'history',
base: process.env.BASE_URL,
routes,
});
export default router;
import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);
export default new Vuex.Store({
state: {
},
mutations: {
},
actions: {
},
modules: {
},
});
<template>
<v-sheet>
<v-layout justify-center>
<v-flex xs12 sm8 md6>
<v-row justify="center" class="mx-0 my-12">
<div style="text-align: center; font-size: 24px; font-weight: 400; color: #343a40;">
What is This Service?
</div>
</v-row>
<v-card elevation="0">
<!-- file upload -->
<div style="text-align: center; font-size: 22px; font-weight: 400; color: #343a40;">
Just Upload your Video!
</div>
<div class="mx-10 mb-12 mt-6">
<video-upload />
</div>
<div style="text-align: center; font-size: 18px; font-weight: 400; color: #343a40;">
If the Video is analyzed successfully,
</div>
<div style="text-align: center; font-size: 20px; font-weight: 400; color: #343a40;">
Then, Result Show up below!
</div>
<v-card outlined class="pa-2 mx-10 mt-8" elevation="0" min-height="67">
<div
style="margin-left: 5px; margin-top: -18px; background-color: #fff; width: 110px; text-align: center;font-size: 14px; color: #5a5a5a; font-weight: 500"
>Generated Tags</div>
<v-chip-group column>
<v-chip
color="secondary"
v-for="(tag, index) in generatedTag"
:key="index"
>
{{ tag }}
</v-chip>
</v-chip-group>
</v-card>
<v-card outlined class="pa-2 mx-10 mt-8" elevation="0" min-height="67">
<div
style="margin-left: 5px; margin-top: -18px; background-color: #fff; width: 140px; text-align: center;font-size: 14px; color: #5a5a5a; font-weight: 500"
>Related Youtube Link</div>
<v-flex v-for="(url) in YoutubeUrl" :key="url">
<div>
<a :href="url">{{url}}</a>
</div>
</v-flex>
</v-card>
</v-card>
</v-flex>
</v-layout>
</v-sheet>
</template>
<script>
import videoUpload from '../components/uploadFile.vue';
export default {
name: 'Home',
components: {
videoUpload,
},
data() {
return {
myFiles: [],
YoutubeUrl: [],
generatedTag: [],
successDialog: false,
errorDialog: false,
loading: false,
};
},
created() {
this.YoutubeUrl = [
];
this.generatedTag = [
];
},
methods: {
loadVideoInfo() {
},
},
};
</script>
module.exports = {
transpileDependencies: [
'vuetify',
],
};
This diff could not be displayed because it is too large.