Compare commits
No commits in common. "e61fef9710994a30f538c59d49ff424282f3a4dd" and "c7a2c9ac34aaf76dc940e02ad14b460f1cdc9636" have entirely different histories.
e61fef9710
...
c7a2c9ac34
|
@ -1,21 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head><script type="text/javascript" src="/___vscode_livepreview_injected_script"></script>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Skeez Meet</title>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css">
|
||||
<script src="model.js"></script>
|
||||
<script src="viewHome.js"></script>
|
||||
<script src="viewAddSlope.js"></script>
|
||||
<script src="viewLogin.js"></script>
|
||||
<script src="common.js"></script>
|
||||
<script src="updateView.js"></script>
|
||||
<script src="viewSlopeInfo.js"></script>
|
||||
|
||||
</head>
|
||||
<body onload="updateView()">
|
||||
<div id="app">
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
17
package-lock.json
generated
17
package-lock.json
generated
|
@ -9,8 +9,7 @@
|
|||
"react-router-dom": "^6.26.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/prompt": "^1.1.8",
|
||||
"typescript": "^5.6.3"
|
||||
"@types/prompt": "^1.1.8"
|
||||
}
|
||||
},
|
||||
"node_modules/@colors/colors": {
|
||||
|
@ -230,20 +229,6 @@
|
|||
"node": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/typescript": {
|
||||
"version": "5.6.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz",
|
||||
"integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14.17"
|
||||
}
|
||||
},
|
||||
"node_modules/undici-types": {
|
||||
"version": "6.18.2",
|
||||
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.18.2.tgz",
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
"react-router-dom": "^6.26.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/prompt": "^1.1.8",
|
||||
"typescript": "^5.6.3"
|
||||
"@types/prompt": "^1.1.8"
|
||||
}
|
||||
}
|
||||
|
|
0
team/skeez_meet/common.js
Normal file
0
team/skeez_meet/common.js
Normal file
0
team/skeez_meet/controller.js
Normal file
0
team/skeez_meet/controller.js
Normal file
14
team/skeez_meet/index.html
Normal file
14
team/skeez_meet/index.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Skeez Meet</title>
|
||||
<script src="modell.js"></script>
|
||||
<script src="view.js"></script>
|
||||
</head>
|
||||
<body onload="updateView()">
|
||||
<div id="app">
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
87
team/skeez_meet/model.js
Normal file
87
team/skeez_meet/model.js
Normal file
|
@ -0,0 +1,87 @@
|
|||
const model = {
|
||||
app: {
|
||||
pages: ["index", "profile", "slopeInfo", "addSlope", "register", "login", "newEvent"],
|
||||
currentPage: "index",
|
||||
loggedIn: false,
|
||||
},
|
||||
|
||||
input: {
|
||||
logIn: {
|
||||
userName: null,
|
||||
password: null,
|
||||
},
|
||||
registerUser: {
|
||||
userName: null,
|
||||
name: null,
|
||||
lastName: null,
|
||||
email: null,
|
||||
password: null,
|
||||
confirmPassword: null,
|
||||
image: null,
|
||||
personalBio: null,
|
||||
address: null,
|
||||
phoneNumber: null,
|
||||
},
|
||||
newEvent: {
|
||||
name: null,
|
||||
date: null,
|
||||
slope: null,
|
||||
comment: null,
|
||||
deadLine: null,
|
||||
},
|
||||
addSlope: {
|
||||
name: null,
|
||||
location: null,
|
||||
difficulty: null,
|
||||
description: null,
|
||||
comment: null,
|
||||
photo: null,
|
||||
type: null,
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
data: {
|
||||
users: [{
|
||||
id: null,
|
||||
name: "",
|
||||
password: null,
|
||||
profilePicture: "",
|
||||
adress: "",
|
||||
phoneNumber: null,
|
||||
goals: {
|
||||
title: "",
|
||||
description: "",
|
||||
amount: null,
|
||||
},
|
||||
eventsAttending: [],
|
||||
},
|
||||
],
|
||||
slopes: [{
|
||||
id: null,
|
||||
name: "",
|
||||
location: "",
|
||||
description: "",
|
||||
ratings: [],
|
||||
avgRating: null,
|
||||
difficulty: null,
|
||||
type: [],
|
||||
photo: null,
|
||||
comment: [],
|
||||
},
|
||||
],
|
||||
|
||||
events: [{
|
||||
id: null,
|
||||
name: "",
|
||||
slope: "",
|
||||
date: "",
|
||||
comment: [],
|
||||
members: [],
|
||||
deadLine: null,
|
||||
},
|
||||
],
|
||||
|
||||
},
|
||||
|
||||
}
|
8
team/skeez_meet/viewAddSlope.js
Normal file
8
team/skeez_meet/viewAddSlope.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
let app = document.getElementById('app');
|
||||
|
||||
function updateView() {
|
||||
document.getElementById('app').innerHTML = /*html*/ `
|
||||
${model.data.users}
|
||||
`;
|
||||
console.log(model.data.users, "hello");
|
||||
}
|
6
team/skeez_meet/viewIndex.js
Normal file
6
team/skeez_meet/viewIndex.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
function updateView() {
|
||||
document.getElementById('app').innerHTML = /*html*/ `
|
||||
${model.data.users}
|
||||
`;
|
||||
console.log(model.data.users, "hello");
|
||||
}
|
0
team/skeez_meet/viewLogin.js
Normal file
0
team/skeez_meet/viewLogin.js
Normal file
0
team/skeez_meet/viewNewEvent.js
Normal file
0
team/skeez_meet/viewNewEvent.js
Normal file
8
team/skeez_meet/viewProfile.js
Normal file
8
team/skeez_meet/viewProfile.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
let app = document.getElementById('app');
|
||||
|
||||
function updateView() {
|
||||
document.getElementById('app').innerHTML = /*html*/ `
|
||||
${model.data.users}
|
||||
`;
|
||||
console.log(model.data.users, "hello");
|
||||
}
|
0
team/skeez_meet/viewRegister.js
Normal file
0
team/skeez_meet/viewRegister.js
Normal file
8
team/skeez_meet/viewSlopeInfo.js
Normal file
8
team/skeez_meet/viewSlopeInfo.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
let app = document.getElementById('app');
|
||||
|
||||
function updateView() {
|
||||
document.getElementById('app').innerHTML = /*html*/ `
|
||||
${model.data.users}
|
||||
`;
|
||||
console.log(model.data.users, "hello");
|
||||
}
|
Loading…
Reference in a new issue