Skip to content

Commit 928c0c5

Browse files
author
Jack Koppa
committed
init
0 parents  commit 928c0c5

14 files changed

+12496
-0
lines changed

Diff for: .gitignore

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
6+
# local env files
7+
.env.local
8+
.env.*.local
9+
10+
# Log files
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
15+
16+
# Editor directories and files
17+
.idea
18+
.vscode
19+
*.suo
20+
*.ntvs*
21+
*.njsproj
22+
*.sln
23+
*.sw?

Diff for: README.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# vue-holiday-hack-randomizer
2+
3+
## Project setup
4+
```
5+
npm install
6+
```
7+
8+
### Compiles and hot-reloads for development
9+
```
10+
npm run serve
11+
```
12+
13+
### Compiles and minifies for production
14+
```
15+
npm run build
16+
```
17+
18+
### Lints and fixes files
19+
```
20+
npm run lint
21+
```
22+
23+
### Customize configuration
24+
See [Configuration Reference](https://cli.vuejs.org/config/).

Diff for: babel.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: ["@vue/cli-plugin-babel/preset"]
3+
};

Diff for: package-lock.json

+12,173
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"name": "vue-holiday-hack-randomizer",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"serve": "vue-cli-service serve",
7+
"build": "vue-cli-service build",
8+
"lint": "vue-cli-service lint"
9+
},
10+
"dependencies": {
11+
"core-js": "^3.6.5",
12+
"vue": "^3.0.0",
13+
"vue-router": "^4.0.0-0"
14+
},
15+
"devDependencies": {
16+
"@vue/cli-plugin-babel": "~4.5.0",
17+
"@vue/cli-plugin-eslint": "~4.5.0",
18+
"@vue/cli-plugin-router": "~4.5.0",
19+
"@vue/cli-service": "~4.5.0",
20+
"@vue/compiler-sfc": "^3.0.0",
21+
"@vue/eslint-config-prettier": "^6.0.0",
22+
"babel-eslint": "^10.1.0",
23+
"eslint": "^6.7.2",
24+
"eslint-plugin-prettier": "^3.1.3",
25+
"eslint-plugin-vue": "^7.0.0-0",
26+
"prettier": "^1.19.1"
27+
},
28+
"eslintConfig": {
29+
"root": true,
30+
"env": {
31+
"node": true
32+
},
33+
"extends": [
34+
"plugin:vue/vue3-essential",
35+
"eslint:recommended",
36+
"@vue/prettier"
37+
],
38+
"parserOptions": {
39+
"parser": "babel-eslint"
40+
},
41+
"rules": {}
42+
},
43+
"browserslist": [
44+
"> 1%",
45+
"last 2 versions",
46+
"not dead"
47+
]
48+
}

Diff for: public/favicon.ico

4.19 KB
Binary file not shown.

Diff for: public/index.html

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
7+
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
8+
<title><%= htmlWebpackPlugin.options.title %></title>
9+
</head>
10+
<body>
11+
<noscript>
12+
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
13+
</noscript>
14+
<div id="app"></div>
15+
<!-- built files will be auto injected -->
16+
</body>
17+
</html>

Diff for: src/App.vue

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<template>
2+
<div id="nav">
3+
<router-link to="/">Home</router-link> |
4+
<router-link to="/about">About</router-link>
5+
</div>
6+
<router-view />
7+
</template>
8+
9+
<style>
10+
#app {
11+
font-family: Avenir, Helvetica, Arial, sans-serif;
12+
-webkit-font-smoothing: antialiased;
13+
-moz-osx-font-smoothing: grayscale;
14+
text-align: center;
15+
color: #2c3e50;
16+
}
17+
18+
#nav {
19+
padding: 30px;
20+
}
21+
22+
#nav a {
23+
font-weight: bold;
24+
color: #2c3e50;
25+
}
26+
27+
#nav a.router-link-exact-active {
28+
color: #42b983;
29+
}
30+
</style>

Diff for: src/assets/logo.png

6.69 KB
Loading

Diff for: src/components/HelloWorld.vue

+122
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
<template>
2+
<div class="hello">
3+
<h1>{{ msg }}</h1>
4+
<p>
5+
For a guide and recipes on how to configure / customize this project,<br />
6+
check out the
7+
<a href="https://cli.vuejs.org" target="_blank" rel="noopener"
8+
>vue-cli documentation</a
9+
>.
10+
</p>
11+
<h3>Installed CLI Plugins</h3>
12+
<ul>
13+
<li>
14+
<a
15+
href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel"
16+
target="_blank"
17+
rel="noopener"
18+
>babel</a
19+
>
20+
</li>
21+
<li>
22+
<a
23+
href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-router"
24+
target="_blank"
25+
rel="noopener"
26+
>router</a
27+
>
28+
</li>
29+
<li>
30+
<a
31+
href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint"
32+
target="_blank"
33+
rel="noopener"
34+
>eslint</a
35+
>
36+
</li>
37+
</ul>
38+
<h3>Essential Links</h3>
39+
<ul>
40+
<li>
41+
<a href="https://vuejs.org" target="_blank" rel="noopener">Core Docs</a>
42+
</li>
43+
<li>
44+
<a href="https://forum.vuejs.org" target="_blank" rel="noopener"
45+
>Forum</a
46+
>
47+
</li>
48+
<li>
49+
<a href="https://chat.vuejs.org" target="_blank" rel="noopener"
50+
>Community Chat</a
51+
>
52+
</li>
53+
<li>
54+
<a href="https://twitter.com/vuejs" target="_blank" rel="noopener"
55+
>Twitter</a
56+
>
57+
</li>
58+
<li>
59+
<a href="https://news.vuejs.org" target="_blank" rel="noopener">News</a>
60+
</li>
61+
</ul>
62+
<h3>Ecosystem</h3>
63+
<ul>
64+
<li>
65+
<a href="https://router.vuejs.org" target="_blank" rel="noopener"
66+
>vue-router</a
67+
>
68+
</li>
69+
<li>
70+
<a href="https://vuex.vuejs.org" target="_blank" rel="noopener">vuex</a>
71+
</li>
72+
<li>
73+
<a
74+
href="https://github.com/vuejs/vue-devtools#vue-devtools"
75+
target="_blank"
76+
rel="noopener"
77+
>vue-devtools</a
78+
>
79+
</li>
80+
<li>
81+
<a href="https://vue-loader.vuejs.org" target="_blank" rel="noopener"
82+
>vue-loader</a
83+
>
84+
</li>
85+
<li>
86+
<a
87+
href="https://github.com/vuejs/awesome-vue"
88+
target="_blank"
89+
rel="noopener"
90+
>awesome-vue</a
91+
>
92+
</li>
93+
</ul>
94+
</div>
95+
</template>
96+
97+
<script>
98+
export default {
99+
name: "HelloWorld",
100+
props: {
101+
msg: String
102+
}
103+
};
104+
</script>
105+
106+
<!-- Add "scoped" attribute to limit CSS to this component only -->
107+
<style scoped>
108+
h3 {
109+
margin: 40px 0 0;
110+
}
111+
ul {
112+
list-style-type: none;
113+
padding: 0;
114+
}
115+
li {
116+
display: inline-block;
117+
margin: 0 10px;
118+
}
119+
a {
120+
color: #42b983;
121+
}
122+
</style>

Diff for: src/main.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { createApp } from "vue";
2+
import App from "./App.vue";
3+
import router from "./router";
4+
5+
createApp(App)
6+
.use(router)
7+
.mount("#app");

Diff for: src/router/index.js

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { createRouter, createWebHashHistory } from "vue-router";
2+
import Home from "../views/Home.vue";
3+
4+
const routes = [
5+
{
6+
path: "/",
7+
name: "Home",
8+
component: Home
9+
},
10+
{
11+
path: "/about",
12+
name: "About",
13+
// route level code-splitting
14+
// this generates a separate chunk (about.[hash].js) for this route
15+
// which is lazy-loaded when the route is visited.
16+
component: () =>
17+
import(/* webpackChunkName: "about" */ "../views/About.vue")
18+
}
19+
];
20+
21+
const router = createRouter({
22+
history: createWebHashHistory(),
23+
routes
24+
});
25+
26+
export default router;

Diff for: src/views/About.vue

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<template>
2+
<div class="about">
3+
<h1>This is an about page</h1>
4+
</div>
5+
</template>

Diff for: src/views/Home.vue

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<template>
2+
<div class="home">
3+
<img alt="Vue logo" src="../assets/logo.png" />
4+
<HelloWorld msg="Welcome to Your Vue.js App" />
5+
</div>
6+
</template>
7+
8+
<script>
9+
// @ is an alias to /src
10+
import HelloWorld from "@/components/HelloWorld.vue";
11+
12+
export default {
13+
name: "Home",
14+
components: {
15+
HelloWorld
16+
}
17+
};
18+
</script>

0 commit comments

Comments
 (0)