Skip to content

Commit 4691dee

Browse files
committed
Refactor login page styles and structure; enhance user experience with improved CSS and HTML layout
- Updated CSS for login page with new variables and styles for better visual hierarchy and responsiveness. - Refactored HTML structure for the login form, including accessibility improvements and better semantic markup. - Simplified JavaScript for handling login functionality, removing unnecessary language translations and improving error handling. - Introduced new app styles and scripts for user management, including roles and endpoints. - Added new CSS for application layout, buttons, and forms to ensure consistency across the application. - Implemented JavaScript functions for API interactions, user role management, and dynamic rendering of user data. - Adjusted routing and database connection strings for consistency and clarity.
1 parent c868157 commit 4691dee

71 files changed

Lines changed: 1255 additions & 7948 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.ko.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ ApiController는 기본적으로 로그인 페이지로 리디렉션하지 않
159159

160160
### 사용자 정의 프론트엔드
161161

162-
- 관리 백엔드 프론트엔드는 `/src/Frontend_Identity`에서 Vue3 + Vite를 사용하며, `npm run build`를 사용한 후 miniauth UI를 업데이트할 수 있습니다.
162+
- 관리 백엔드 UI는 `/src/MiniAuth.IdentityAuth/wwwroot`에 순수 HTML, CSS, JavaScript 정적 파일로 내장되며 별도의 프론트엔드 빌드 단계가 필요하지 않습니다.
163163
- 로그인 페이지에 miniauth 기본값을 사용하지 않으려면 mvc에서 ID 스캐폴드 Login.cshtml을 사용하거나 miniauth 프론트엔드의 login.html, js, css를 변경할 수 있습니다.
164164

165165
### 릴리스 노트

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ The unit is in seconds, with a default setting of 30 minutes. Additionally, note
172172

173173
#### Refresh Token API (JWT)
174174

175-
API : `/MiniAuth/refreshToken`
175+
API : `/miniauth/refreshToken`
176176
Body:
177177

178178
```json
@@ -235,8 +235,8 @@ Controllers marked as ApiController do not redirect to a login page by default;
235235

236236
### Custom Frontend
237237

238-
- The admin dashboard frontend is located in `/src/Frontend_Identity` and primarily uses Vue3 + Vite. Running `npm run build` will update the miniauth UI.
239-
- If you don't want to use the default miniauth login page, MVC allows you to use the scaffolded Login.cshtml provided by identity, or you can modify the login.html, js, and css files in the miniauth frontend.
238+
- The admin dashboard UI is embedded from `/src/MiniAuth.IdentityAuth/wwwroot` as plain HTML, CSS, and JavaScript. The package does not require a frontend build step.
239+
- If you don't want to use the default miniauth login page, MVC allows you to use the scaffolded Login.cshtml provided by identity, or you can replace the embedded login.html, login.js, and login.css files.
240240

241241
### Custom Route Prefix
242242

@@ -247,13 +247,13 @@ builder.Services.AddMiniAuth(options: (options) =>
247247
});
248248
```
249249

250-
The default RoutePrefix is `MiniAuth`.
250+
The default RoutePrefix is `miniauth`.
251251

252252

253253

254254
### Login API (JWT)
255255

256-
API: `/MiniAuth/login`
256+
API: `/miniauth/login`
257257

258258
Body:
259259

README.zh-CN.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ xhr.send();
184184

185185
#### 刷新 Refresh Token API (JWT)
186186

187-
API : `/MiniAuth/refreshToken`
187+
API : `/miniauth/refreshToken`
188188
Body:
189189

190190
```json
@@ -251,8 +251,8 @@ ApiController 的 Controller 预设不会导向登录页面,而是返回 401 s
251251

252252
### 自定义前端
253253

254-
- 管理后台前端在 `/src/Frontend_Identity` 主体使用 Vue3 + Vite,使用 npm run build 后即可更新 miniauth 的 UI
255-
- 登录页面不想使用 miniauth 预设, mvc可以使用 identity 自带的Scaffolded Login.cshtml ,或是更改 miniauth 前端的 login.html, js, css
254+
- 管理后台 UI 直接以内嵌静态文件放在 `/src/MiniAuth.IdentityAuth/wwwroot`,使用纯 HTML、CSS、JavaScript,不需要前端 build 步骤
255+
- 登录页面不想使用 miniauth 预设,mvc 可以使用 identity 自带的 Scaffolded Login.cshtml,或是替换内嵌的 login.html, login.js, login.css
256256

257257
### 自定路由前缀
258258

@@ -263,13 +263,13 @@ builder.Services.AddMiniAuth(options: (options) =>
263263
});
264264
```
265265

266-
预设 RoutePrefix 为 `MiniAuth`
266+
预设 RoutePrefix 为 `miniauth`
267267

268268

269269

270270
### 登录API (JWT)
271271

272-
API: `/MiniAuth/login`
272+
API: `/miniauth/login`
273273

274274
Body:
275275

src/Frontend_Identity/.env.development

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/Frontend_Identity/.env.production

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/Frontend_Identity/.eslintrc.cjs

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/Frontend_Identity/.gitignore

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/Frontend_Identity/.prettierrc.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/Frontend_Identity/.vscode/extensions.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/Frontend_Identity/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This frontend project has been retired.
2+
3+
The production MiniAuth UI now lives in `../MiniAuth.IdentityAuth/wwwroot` as plain HTML, CSS, and JavaScript. It is embedded directly into the MiniAuth package and does not require React, Vue, Vite, or npm to build the package.

0 commit comments

Comments
 (0)