diff --git a/FrontEnd/index.html b/FrontEnd/index.html index 244f13c..17c8977 100644 --- a/FrontEnd/index.html +++ b/FrontEnd/index.html @@ -1,10 +1,10 @@ - + - + - Vite App + DormStar
diff --git a/FrontEnd/package.json b/FrontEnd/package.json index 102026c..5e55e17 100644 --- a/FrontEnd/package.json +++ b/FrontEnd/package.json @@ -9,6 +9,7 @@ }, "dependencies": { "@heroicons/vue": "^2.0.18", + "axios": "^1.6.2", "flowbite": "^2.2.0", "vue": "^3.3.4", "vue-router": "^4.2.5" diff --git a/FrontEnd/public/favicon.ico b/FrontEnd/public/favicon.ico deleted file mode 100644 index df36fcf..0000000 Binary files a/FrontEnd/public/favicon.ico and /dev/null differ diff --git a/FrontEnd/public/logo.png b/FrontEnd/public/logo.png new file mode 100644 index 0000000..bc916bc Binary files /dev/null and b/FrontEnd/public/logo.png differ diff --git a/FrontEnd/src/assets/logo.svg b/FrontEnd/src/assets/logo.svg deleted file mode 100644 index 7565660..0000000 --- a/FrontEnd/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/FrontEnd/src/components/HelloWorld.vue b/FrontEnd/src/components/HelloWorld.vue deleted file mode 100644 index 5fb372c..0000000 --- a/FrontEnd/src/components/HelloWorld.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/FrontEnd/src/components/TheWelcome.vue b/FrontEnd/src/components/TheWelcome.vue deleted file mode 100644 index dab9536..0000000 --- a/FrontEnd/src/components/TheWelcome.vue +++ /dev/null @@ -1,88 +0,0 @@ - - - diff --git a/FrontEnd/src/components/WelcomeItem.vue b/FrontEnd/src/components/WelcomeItem.vue deleted file mode 100644 index ac366d0..0000000 --- a/FrontEnd/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/FrontEnd/src/components/icons/IconCommunity.vue b/FrontEnd/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b05..0000000 --- a/FrontEnd/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/FrontEnd/src/components/icons/IconDocumentation.vue b/FrontEnd/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791c..0000000 --- a/FrontEnd/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/FrontEnd/src/components/icons/IconEcosystem.vue b/FrontEnd/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f07..0000000 --- a/FrontEnd/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/FrontEnd/src/components/icons/IconSupport.vue b/FrontEnd/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834..0000000 --- a/FrontEnd/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/FrontEnd/src/components/icons/IconTooling.vue b/FrontEnd/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d..0000000 --- a/FrontEnd/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/FrontEnd/src/router/index.js b/FrontEnd/src/router/index.js index 0c80538..a1e7853 100644 --- a/FrontEnd/src/router/index.js +++ b/FrontEnd/src/router/index.js @@ -7,6 +7,14 @@ const router = createRouter({ { path: '/', component: () => import('../views/IndexWelcome.vue'), + }, + { + path: '/sign/in', + component: () => import('../views/Sign/SignIn.vue'), + }, + { + path: '/sign/up', + component: () => import('../views/Sign/SignUp.vue'), } ] }) diff --git a/FrontEnd/src/views/IndexWelcome.vue b/FrontEnd/src/views/IndexWelcome.vue index c4a4119..e1ff314 100644 --- a/FrontEnd/src/views/IndexWelcome.vue +++ b/FrontEnd/src/views/IndexWelcome.vue @@ -12,7 +12,7 @@
-

Boost your productivity.
Start using our app today.

+

{{ data }}

Ac euismod vel sit maecenas id pellentesque eu sed consectetur. Malesuada adipiscing sagittis vel nulla.

Get started @@ -26,3 +26,34 @@
+ + diff --git a/FrontEnd/src/views/Sign/SignIn.vue b/FrontEnd/src/views/Sign/SignIn.vue new file mode 100644 index 0000000..f79cdd8 --- /dev/null +++ b/FrontEnd/src/views/Sign/SignIn.vue @@ -0,0 +1,11 @@ + + + + + \ No newline at end of file diff --git a/FrontEnd/src/views/Sign/SignUp.vue b/FrontEnd/src/views/Sign/SignUp.vue new file mode 100644 index 0000000..f79cdd8 --- /dev/null +++ b/FrontEnd/src/views/Sign/SignUp.vue @@ -0,0 +1,11 @@ + + + + + \ No newline at end of file diff --git a/src/main/kotlin/com/xlf/dromstarkotlin/config/CorsConfiguration.kt b/src/main/kotlin/com/xlf/dromstarkotlin/config/CorsConfiguration.kt new file mode 100644 index 0000000..e55db34 --- /dev/null +++ b/src/main/kotlin/com/xlf/dromstarkotlin/config/CorsConfiguration.kt @@ -0,0 +1,19 @@ +package com.xlf.dromstarkotlin.config + +import org.springframework.context.annotation.Configuration +import org.springframework.web.servlet.config.annotation.CorsRegistry + +import org.springframework.web.servlet.config.annotation.WebMvcConfigurer + + +@Configuration +class CorsConfiguration : WebMvcConfigurer { + override fun addCorsMappings(registry: CorsRegistry) { + registry.addMapping("/**") //是否发送Cookie + .allowCredentials(true) //放行哪些原始域 + .allowedOriginPatterns("*") + .allowedMethods(*arrayOf("GET", "POST", "PUT", "DELETE")) + .allowedHeaders("*") + .exposedHeaders("*") + } +} \ No newline at end of file