Skip to content

Commit

Permalink
first step (#1)
Browse files Browse the repository at this point in the history
* first step
  • Loading branch information
hgwr authored Mar 21, 2023
1 parent 0306594 commit 3473728
Show file tree
Hide file tree
Showing 59 changed files with 2,831 additions and 131 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ dependencies {
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'

implementation group: 'ch.qos.logback', name: 'logback-access', version: '1.4.6'
}

tasks.named('test') {
Expand Down
14 changes: 14 additions & 0 deletions docs/name.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# names

サクラ
ウメ
カエデ
シラカバ
アジサイ
ツツジ
モミジ
ツバキ
マツ
モクレン
タケ
ヒイラギ
21 changes: 21 additions & 0 deletions docs/spec.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# spec

入口 `https://oi.moreslowly.jp/`

名前を入力
セッションに保存
名前の表示
名前の変更

`/?room=UUID`

- 開始 start
- シャッフル shuffle
- カードを配る hand out cards
- 掛け金設定 wait to bet
- 全員OK
- 3枚目のカードの要否 wait to request additional card
- 全員OK
- 親が自分のカードをめくる parent turns over cards
- 親が三枚目のカードを取るか決める parent hand is determined
- 清算 liquidation
4 changes: 2 additions & 2 deletions front/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/svg+xml" href="/1F3B4.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Vue + TS</title>
<title>Oi</title>
</head>
<body>
<div id="app"></div>
Expand Down
142 changes: 139 additions & 3 deletions front/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,20 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"dev": "vite --debug --host",
"build": "vue-tsc && vite build",
"preview": "vite preview"
},
"dependencies": {
"vue": "^3.2.47"
"axios": "^1.3.4",
"qs": "^6.11.1",
"uuid": "^9.0.0",
"vue": "^3.2.47",
"vue-router": "^4.1.6"
},
"devDependencies": {
"@types/qs": "^6.9.7",
"@types/uuid": "^9.0.1",
"@vitejs/plugin-vue": "^4.1.0",
"typescript": "^4.9.3",
"vite": "^4.2.0",
Expand Down
12 changes: 12 additions & 0 deletions front/public/1F3B4.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 2 additions & 25 deletions front/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,30 +1,7 @@
<script setup lang="ts">
import HelloWorld from './components/HelloWorld.vue'
</script>

<template>
<div>
<a href="https://vitejs.dev" target="_blank">
<img src="/vite.svg" class="logo" alt="Vite logo" />
</a>
<a href="https://vuejs.org/" target="_blank">
<img src="./assets/vue.svg" class="logo vue" alt="Vue logo" />
</a>
</div>
<HelloWorld msg="Vite + Vue" />
<router-view :key="$route.fullPath"></router-view>
</template>

<style scoped>
.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: filter 300ms;
}
.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vue:hover {
filter: drop-shadow(0 0 2em #42b883aa);
}
</style>
13 changes: 13 additions & 0 deletions front/src/axios.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import axios from 'axios'
import qs from 'qs'

const instance = axios.create({
baseURL: '/api',
paramsSerializer: {
serialize: (params) => {
return qs.stringify(params, { arrayFormat: 'repeat' })
},
},
})

export default instance
Loading

0 comments on commit 3473728

Please sign in to comment.