Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit608d3f3

Browse files
author
Julien Neuhart
committed
adding new files
1 parent42448c2 commit608d3f3

File tree

76 files changed

+17385
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+17385
-0
lines changed

‎.env.template‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
MYSQL_ROOT_PASSWORD=admin
2+
MYSQL_DATABASE=tutorial
3+
MYSQL_USER=foo
4+
MYSQL_PASSWORD=bar

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.env

‎sources/app/.env.test‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# define your env variables for the test env here
2+
KERNEL_CLASS='App\Kernel'
3+
APP_SECRET='s$cretf0rt3st'
4+
SYMFONY_DEPRECATIONS_HELPER=999999

‎sources/app/.eslintrc.json‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"root":true,
3+
"parserOptions": {
4+
"ecmaVersion":2018,
5+
"sourceType":"module",
6+
"parser":"babel-eslint"
7+
},
8+
"env": {
9+
"browser":true,
10+
"es6":true
11+
},
12+
"extends": [
13+
"eslint:recommended",
14+
"plugin:vue/recommended"
15+
]
16+
}

‎sources/app/.gitignore‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
###> symfony/framework-bundle ###
3+
/.env.local
4+
/.env.local.php
5+
/.env.*.local
6+
/public/bundles/
7+
/var/
8+
/vendor/
9+
###< symfony/framework-bundle ###
10+
11+
###> symfony/phpunit-bridge ###
12+
.phpunit
13+
/phpunit.xml
14+
###< symfony/phpunit-bridge ###
15+
16+
###> symfony/web-server-bundle ###
17+
/.web-server-pid
18+
###< symfony/web-server-bundle ###
19+
20+
###> squizlabs/php_codesniffer ###
21+
/.phpcs-cache
22+
/phpcs.xml
23+
###< squizlabs/php_codesniffer ###
24+
25+
###> symfony/webpack-encore-bundle ###
26+
/node_modules/
27+
/public/build/
28+
npm-debug.log
29+
yarn-error.log
30+
###< symfony/webpack-encore-bundle ###

‎sources/app/assets/vue/App.vue‎

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<template>
2+
<divclass="container">
3+
<navclass="navbar navbar-expand-lg navbar-light bg-light">
4+
<router-link
5+
class="navbar-brand"
6+
to="/home"
7+
>
8+
App
9+
</router-link>
10+
<button
11+
class="navbar-toggler"
12+
type="button"
13+
data-toggle="collapse"
14+
data-target="#navbarNav"
15+
aria-controls="navbarNav"
16+
aria-expanded="false"
17+
aria-label="Toggle navigation"
18+
>
19+
<spanclass="navbar-toggler-icon" />
20+
</button>
21+
<div
22+
id="navbarNav"
23+
class="collapse navbar-collapse"
24+
>
25+
<ulclass="navbar-nav">
26+
<router-link
27+
class="nav-item"
28+
tag="li"
29+
to="/home"
30+
active-class="active"
31+
>
32+
<aclass="nav-link">Home</a>
33+
</router-link>
34+
<router-link
35+
class="nav-item"
36+
tag="li"
37+
to="/posts"
38+
active-class="active"
39+
>
40+
<aclass="nav-link">Posts</a>
41+
</router-link>
42+
</ul>
43+
</div>
44+
</nav>
45+
46+
<router-view />
47+
</div>
48+
</template>
49+
50+
<script>
51+
exportdefault {
52+
name:"App",
53+
}
54+
</script>

‎sources/app/assets/vue/api/post.js‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
importaxiosfrom"axios";
2+
3+
exportdefault{
4+
create(message){
5+
returnaxios.post("/api/post/create",{
6+
message:message
7+
});
8+
},
9+
posts(){
10+
returnaxios.get("/api/posts");
11+
}
12+
};
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<template>
2+
<divclass="card w-100 mt-2">
3+
<divclass="card-body">
4+
{{ message }}
5+
</div>
6+
</div>
7+
</template>
8+
9+
<script>
10+
exportdefault {
11+
name:"Post",
12+
props: {
13+
message: {
14+
type:String,
15+
required:true,
16+
}
17+
}
18+
};
19+
</script>

‎sources/app/assets/vue/index.js‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
importVuefrom"vue";
2+
importAppfrom"./App";
3+
importrouterfrom"./router";
4+
importstorefrom"./store";
5+
6+
newVue({
7+
components:{ App},
8+
template:"<App/>",
9+
router,
10+
store
11+
}).$mount("#app");
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
importVuefrom"vue";
2+
importVueRouterfrom"vue-router";
3+
importHomefrom"../views/Home";
4+
importPostsfrom"../views/Posts";
5+
6+
Vue.use(VueRouter);
7+
8+
exportdefaultnewVueRouter({
9+
mode:"history",
10+
routes:[
11+
{path:"/home",component:Home},
12+
{path:"/posts",component:Posts},
13+
{path:"*",redirect:"/home"}
14+
]
15+
});

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp