Compare commits

...

1 Commits

Author SHA1 Message Date
Shuozhe 82e7a33831 added seperate vuejs solution 2021-06-30 15:33:09 +02:00
11 changed files with 14364 additions and 1 deletions

View File

@ -5,7 +5,7 @@ namespace ProjectGrid.Models
public class TicTacTocResponse public class TicTacTocResponse
{ {
public List<int> Board { get; set; } public List<int> Board { get; set; }
public int NextPlayer { get; set; }
public int PlayerWon { get; set; } public int PlayerWon { get; set; }
} }
} }

5
clientapp/.editorconfig Normal file
View File

@ -0,0 +1,5 @@
# Rules in this file were initially inferred by Visual Studio IntelliCode from the C:\Users\net\repository\ProjectGrid\clientapp codebase based on best match to current usage at 30.06.2021
# You can modify the rules from these initially generated values to suit your own policies
# You can learn more about editorconfig here: https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference
[*.cs]

View File

@ -0,0 +1,3 @@
# ProjectGrid.frontend

View File

@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/app'
]
};

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,49 @@
{
"name": "project-grid.frontend",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"description": "ProjectGrid.frontend",
"author": {
"name": ""
},
"dependencies": {
"vue": "2.5.17"
},
"devDependencies": {
"@vue/cli-plugin-babel": "3.0.4",
"@vue/cli-plugin-eslint": "3.0.4",
"@vue/cli-service": "3.0.4",
"eslint": "5.6.0",
"eslint-plugin-vue": "4.7.1",
"vue-template-compiler": "2.5.17"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended"
],
"rules": {},
"parserOptions": {
"parser": "babel-eslint"
}
},
"postcss": {
"plugins": {
"autoprefixer": {}
}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -0,0 +1,18 @@
<!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>ProjectGrid.frontend</title>
</head>
<body>
<noscript>
<strong>We're sorry but ProjectGrid.frontend 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>

View File

@ -0,0 +1,20 @@
<template>
<div id="app">
<Home msg="Hello world!" />
</div>
</template>
<script>
import Home from './components/Home.vue';
export default {
name: 'app',
components: {
Home
}
};
</script>
<style>
</style>

View File

@ -0,0 +1,20 @@
<template>
<div class="home">
<h1>{{ msg }}</h1>
<p>Welcome to your new single-page application, built with <a href="https://vuejs.org" target="_blank">Vue.js</a>.</p>
</div>
</template>
<script>
export default {
name: 'Home',
props: {
msg: String
}
};
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
</style>

View File

@ -0,0 +1,8 @@
import Vue from 'vue';
import App from './App.vue';
Vue.config.productionTip = true;
new Vue({
render: h => h(App)
}).$mount('#app');