Explorar el Código

Before Adding Vuex

master
George Williams hace 5 años
padre
commit
4904069c52

+ 6
- 1
README.md Ver fichero

@@ -1,24 +1,29 @@
1
-# css_test
1
+# ProRestaurant
2 2
 
3 3
 ## Project setup
4
+
4 5
 ```
5 6
 npm install
6 7
 ```
7 8
 
8 9
 ### Compiles and hot-reloads for development
10
+
9 11
 ```
10 12
 npm run serve
11 13
 ```
12 14
 
13 15
 ### Compiles and minifies for production
16
+
14 17
 ```
15 18
 npm run build
16 19
 ```
17 20
 
18 21
 ### Lints and fixes files
22
+
19 23
 ```
20 24
 npm run lint
21 25
 ```
22 26
 
23 27
 ### Customize configuration
28
+
24 29
 See [Configuration Reference](https://cli.vuejs.org/config/).

+ 11722
- 11722
package-lock.json
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


+ 47
- 47
package.json Ver fichero

@@ -1,49 +1,49 @@
1 1
 {
2
-  "name": "css_test",
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.4",
12
-    "vue": "^2.6.11",
13
-    "vue-carousel": "^0.18.0",
14
-    "vue-router": "^3.1.6"
15
-  },
16
-  "devDependencies": {
17
-    "@vue/cli-plugin-babel": "~4.3.0",
18
-    "@vue/cli-plugin-eslint": "~4.3.0",
19
-    "@vue/cli-plugin-router": "~4.3.0",
20
-    "@vue/cli-service": "~4.3.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.1",
25
-    "eslint-plugin-vue": "^6.2.2",
26
-    "prettier": "^1.19.1",
27
-    "vue-template-compiler": "^2.6.11"
28
-  },
29
-  "eslintConfig": {
30
-    "root": true,
31
-    "env": {
32
-      "node": true
33
-    },
34
-    "extends": [
35
-      "plugin:vue/essential",
36
-      "eslint:recommended",
37
-      "@vue/prettier"
38
-    ],
39
-    "parserOptions": {
40
-      "parser": "babel-eslint"
41
-    },
42
-    "rules": {}
43
-  },
44
-  "browserslist": [
45
-    "> 1%",
46
-    "last 2 versions",
47
-    "not dead"
48
-  ]
2
+	"name": "ProRestaurant",
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.4",
12
+		"vue": "^2.6.11",
13
+		"vue-carousel": "^0.18.0",
14
+		"vue-router": "^3.1.6"
15
+	},
16
+	"devDependencies": {
17
+		"@vue/cli-plugin-babel": "~4.3.0",
18
+		"@vue/cli-plugin-eslint": "~4.3.0",
19
+		"@vue/cli-plugin-router": "~4.3.0",
20
+		"@vue/cli-service": "~4.3.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.1",
25
+		"eslint-plugin-vue": "^6.2.2",
26
+		"prettier": "^1.19.1",
27
+		"vue-template-compiler": "^2.6.11"
28
+	},
29
+	"eslintConfig": {
30
+		"root": true,
31
+		"env": {
32
+			"node": true
33
+		},
34
+		"extends": [
35
+			"plugin:vue/essential",
36
+			"eslint:recommended",
37
+			"@vue/prettier"
38
+		],
39
+		"parserOptions": {
40
+			"parser": "babel-eslint"
41
+		},
42
+		"rules": {}
43
+	},
44
+	"browserslist": [
45
+		"> 1%",
46
+		"last 2 versions",
47
+		"not dead"
48
+	]
49 49
 }

+ 0
- 122
src/components/HelloWorld.vue Ver fichero

@@ -1,122 +0,0 @@
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>

+ 9
- 11
src/components/accounts/register.vue Ver fichero

@@ -7,76 +7,76 @@
7 7
 		<br />
8 8
 		<div class="container">
9 9
 			<div class="col-md-12" style="text-align:left">
10
-				<h4>Private Individual</h4>
10
+				<h4>Register</h4>
11 11
 				<div class="form-group row"></div>
12 12
 				<div class="row">
13 13
 					<div class="col-md-6" style="margin-bottom: 1em">
14
+						<label>Name</label>
14 15
 						<div class="input-group-prepend">
15 16
 							<input
16 17
 								class="form-control"
17 18
 								type="text"
18 19
 								name="name"
19
-								placeholder="Name"
20 20
 							/>
21 21
 						</div>
22 22
 					</div>
23 23
 				</div>
24 24
 				<div class="row">
25 25
 					<div class="col-md-6" style="margin-bottom: 1em">
26
+						<label>Surname</label>
26 27
 						<div class="input-group-prepend">
27 28
 							<input
28 29
 								class="form-control"
29 30
 								type="text"
30
-								name="surname"
31
-								placeholder="Surname"
31
+								name="Surname"
32 32
 							/>
33 33
 						</div>
34 34
 					</div>
35 35
 				</div>
36 36
 				<div class="row">
37 37
 					<div class="col-md-6" style="margin-bottom: 1em">
38
+						<label>Email</label>
38 39
 						<div class="input-group-prepend">
39 40
 							<input
40 41
 								class="form-control"
41 42
 								type="text"
42
-								name="email"
43
-								placeholder="Email Address"
43
+								name="EmailAddress"
44 44
 							/>
45 45
 						</div>
46 46
 					</div>
47 47
 				</div>
48 48
 				<div class="row">
49 49
 					<div class="col-md-6" style="margin-bottom: 1em">
50
+						<label>Cell Number</label>
50 51
 						<div class="input-group-prepend">
51 52
 							<input
52 53
 								class="form-control"
53 54
 								type="text"
54 55
 								name="cellnumber"
55
-								placeholder="Cellphone Number"
56 56
 							/>
57 57
 						</div>
58 58
 					</div>
59 59
 				</div>
60 60
 				<div class="row">
61 61
 					<div class="col-md-6" style="margin-bottom: 1em">
62
+						<label>Password</label>
62 63
 						<div class="input-group-prepend">
63 64
 							<input
64 65
 								class="form-control"
65 66
 								type="password"
66 67
 								name="password"
67
-								placeholder="Password"
68 68
 							/>
69 69
 						</div>
70 70
 					</div>
71 71
 				</div>
72 72
 				<div class="row">
73 73
 					<div class="col-md-6" style="margin-bottom: 1em">
74
+						<label>Confirm Password</label>
74 75
 						<div class="input-group-prepend">
75 76
 							<input
76 77
 								class="form-control"
77 78
 								type="password"
78 79
 								name="confPassword"
79
-								placeholder="Confirm Password"
80 80
 							/>
81 81
 						</div>
82 82
 					</div>
@@ -87,7 +87,6 @@
87 87
 							@click="SubmitData()"
88 88
 							class="btn btn-primary btn-xl"
89 89
 							type="submit"
90
-							data-dismiss="modal"
91 90
 						>
92 91
 							Submit
93 92
 						</button>
@@ -97,7 +96,6 @@
97 96
 							@click="Close()"
98 97
 							class="btn btn-primary btn-xl"
99 98
 							type="submit"
100
-							data-dismiss="modal"
101 99
 						>
102 100
 							Cancel
103 101
 						</button>

+ 89
- 0
src/components/accounts/restaurantRegistration.vue Ver fichero

@@ -0,0 +1,89 @@
1
+<template>
2
+	<div style="text-align:left">
3
+		<h4>Restaurant Details</h4>
4
+		<div class="form-group row"></div>
5
+		<div class="row">
6
+			<div class="col-md-6" style="margin-bottom: 1em">
7
+				<label>Name</label>
8
+				<div class="input-group-prepend">
9
+					<input
10
+						class="form-control"
11
+						type="text"
12
+						name="name"
13
+						placeholder="Name"
14
+					/>
15
+				</div>
16
+			</div>
17
+		</div>
18
+		<div class="row">
19
+			<div class="col-md-6" style="margin-bottom: 1em">
20
+				<div class="input-group-prepend">
21
+					<p>Placeholder for Logo</p>
22
+					<!-- <input
23
+								class="form-control"
24
+								type="text"
25
+								name="surname"
26
+								placeholder="Surname"
27
+							/> -->
28
+				</div>
29
+			</div>
30
+		</div>
31
+		<div class="row">
32
+			<div class="col-md-6" style="margin-bottom: 1em">
33
+				<div class="input-group-prepend">
34
+					<p>Option for change</p>
35
+					<!-- Tool Tip for here: If you are part of a chain, this option will display your name along with the location -->
36
+					<!-- <input
37
+								class="form-control"
38
+								type="text"
39
+								name="email"
40
+								placeholder="Email Address"
41
+							/> -->
42
+				</div>
43
+			</div>
44
+		</div>
45
+		<div class="row">
46
+			<div class="col-md-6" style="margin-bottom: 1em">
47
+				<div class="input-group-prepend">
48
+					<input
49
+						class="form-control"
50
+						type="number"
51
+						name="delFee"
52
+						placeholder="Delivery Fee"
53
+					/>
54
+				</div>
55
+			</div>
56
+		</div>
57
+		<div class="row">
58
+			<div class="col-md-6" style="margin-bottom: 1em">
59
+				<div class="input-group-prepend">
60
+					<input
61
+						class="form-control"
62
+						type="number"
63
+						name="delRadius"
64
+						placeholder="Delivery Radius"
65
+					/>
66
+				</div>
67
+			</div>
68
+		</div>
69
+		<div class="row">
70
+			<div class="col-md-6" style="margin-bottom: 1em">
71
+				<div class="input-group-prepend">
72
+					<input
73
+						class="form-control"
74
+						type="password"
75
+						name="confPassword"
76
+						placeholder="Confirm Password"
77
+					/>
78
+				</div>
79
+			</div>
80
+		</div>
81
+		<div class="row">
82
+			<div class="col-md-6" style="margin-bottom: 1em">
83
+				<div class="input-group-prepend">
84
+					<P>option here to Register a Restaurant</P>
85
+				</div>
86
+			</div>
87
+		</div>
88
+	</div>
89
+</template>

+ 97
- 0
src/components/restaurants/restaurant.vue Ver fichero

@@ -0,0 +1,97 @@
1
+<template>
2
+	<div>
3
+		<br />
4
+		<br />
5
+		<br />
6
+		<br />
7
+		<br />
8
+		<div class="container">
9
+			<div class="col-md-12" style="text-align:left">
10
+				<h4>Restaurant</h4>
11
+				<div class="form-group row"></div>
12
+				<div class="row">
13
+					<div class="col-md-6" style="margin-bottom: 1em">
14
+						<div class="input-group-prepend">
15
+							<input
16
+								class="form-control"
17
+								type="text"
18
+								name="name"
19
+								placeholder="Name"
20
+							/>
21
+						</div>
22
+					</div>
23
+				</div>
24
+				<div class="row">
25
+					<div class="col-md-6" style="margin-bottom: 1em">
26
+						<div class="input-group-prepend">
27
+							<p>Placeholder for Logo</p>
28
+							<!-- <input
29
+								class="form-control"
30
+								type="text"
31
+								name="surname"
32
+								placeholder="Surname"
33
+							/> -->
34
+						</div>
35
+					</div>
36
+				</div>
37
+				<div class="row">
38
+					<div class="col-md-6" style="margin-bottom: 1em">
39
+						<div class="input-group-prepend">
40
+							<p>Option for change</p>
41
+							<!-- Tool Tip for here: If you are part of a chain, this option will display your name along with the location -->
42
+							<!-- <input
43
+								class="form-control"
44
+								type="text"
45
+								name="email"
46
+								placeholder="Email Address"
47
+							/> -->
48
+						</div>
49
+					</div>
50
+				</div>
51
+				<div class="row">
52
+					<div class="col-md-6" style="margin-bottom: 1em">
53
+						<div class="input-group-prepend">
54
+							<input
55
+								class="form-control"
56
+								type="number"
57
+								name="delFee"
58
+								placeholder="Delivery Fee"
59
+							/>
60
+						</div>
61
+					</div>
62
+				</div>
63
+				<div class="row">
64
+					<div class="col-md-6" style="margin-bottom: 1em">
65
+						<div class="input-group-prepend">
66
+							<input
67
+								class="form-control"
68
+								type="number"
69
+								name="delRadius"
70
+								placeholder="Delivery Radius"
71
+							/>
72
+						</div>
73
+					</div>
74
+				</div>
75
+				<div class="row">
76
+					<div class="col-md-6" style="margin-bottom: 1em">
77
+						<div class="input-group-prepend">
78
+							<input
79
+								class="form-control"
80
+								type="password"
81
+								name="confPassword"
82
+								placeholder="Confirm Password"
83
+							/>
84
+						</div>
85
+					</div>
86
+				</div>
87
+				<div class="row">
88
+					<div class="col-md-6" style="margin-bottom: 1em">
89
+						<div class="input-group-prepend">
90
+							<P>option here to Register a Restaurant</P>
91
+						</div>
92
+					</div>
93
+				</div>
94
+			</div>
95
+		</div>
96
+	</div>
97
+</template>

+ 2
- 2
src/components/shared/navBar.vue Ver fichero

@@ -25,8 +25,8 @@
25 25
 						<a
26 26
 							class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger"
27 27
 							@click="routerGoTo('/Registration')"
28
-							>Register</a
29
-						>
28
+							>Register
29
+						</a>
30 30
 					</li>
31 31
 					<li class="nav-item mx-0 mx-lg-1">
32 32
 						<a

+ 0
- 5
src/views/About.vue Ver fichero

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

+ 0
- 18
src/views/Home.vue Ver fichero

@@ -1,18 +0,0 @@
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>

Loading…
Cancelar
Guardar