-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f2e192
commit 431ed66
Showing
42 changed files
with
1,555 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
package controllers | ||
|
||
import ( | ||
"gower/app/services/route" | ||
"net/http" | ||
) | ||
|
||
type AuthController struct { | ||
Controllers | ||
} | ||
|
||
var Auth = new(AuthController) | ||
|
||
// RegisterForm get register form | ||
func (a *AuthController) RegisterForm(c route.Context) { | ||
c.HTML(http.StatusOK, "auth/register", data{ | ||
"Title": "register", | ||
}) | ||
} | ||
|
||
// Register exec register | ||
func (a *AuthController) Register(c route.Context) { | ||
c.JSON(http.StatusOK, data{ | ||
"code": 0, | ||
"msg": "SUCCESS", | ||
"data": nil, | ||
}) | ||
} | ||
|
||
// LoginForm get login form | ||
func (a *AuthController) LoginForm(c route.Context) { | ||
c.HTML(http.StatusOK, "auth/login", data{ | ||
"Title": "login", | ||
}) | ||
} | ||
|
||
// Login exec login | ||
func (a *AuthController) Login(c route.Context) { | ||
c.HTML(http.StatusOK, "auth/login", data{ | ||
"Title": "login", | ||
}) | ||
} | ||
|
||
// Me get personal center | ||
func (a *AuthController) Me(c route.Context) { | ||
c.HTML(http.StatusOK, "auth/me", data{ | ||
"Title": "me", | ||
}) | ||
} | ||
|
||
// Logout exec logout | ||
func (a *AuthController) Logout(c route.Context) { | ||
c.HTML(http.StatusOK, "auth/login", data{ | ||
"Title": "login", | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
package controllers | ||
|
||
type Controllers struct{} | ||
|
||
type data map[string]any |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"version":"v1.0.0","components":{"icon":{"name":"icon","text":"","color":"#7be228","fontFamily":"\"Font Awesome 6 Brands\"","fontWeight":"400","fontSize":75,"letterSpacing":0},"main":{"name":"main","text":"o","color":"#2e96e5","fontFamily":"Faster One","fontWeight":"bold","fontSize":85,"letterSpacing":0},"accent":{"name":"accent","text":"wer","color":"#e57d2e","fontFamily":"Lobster","fontWeight":"bold","fontSize":100,"letterSpacing":0}},"global":{"offset":{"size":5,"color":"#844343"},"layout":"HORIZONTAL","shapes":false}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,39 @@ | ||
{ | ||
"name": "gower", | ||
"type": "module", | ||
"version": "0.0.1", | ||
"description": "", | ||
"main": "resources/js/main.js", | ||
"files": [ | ||
"public/static" | ||
], | ||
"module": "public/static/main.js", | ||
"main": "public/static/main.umd.js", | ||
"exports": { | ||
".": { | ||
"import": "./dist/main.js", | ||
"require": "./dist/main.umd.cjs" | ||
} | ||
}, | ||
"scripts": { | ||
"b": "pnpm vite build", | ||
"build": "pnpm vite build", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": [], | ||
"author": "falling-ts", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"@rollup/plugin-replace": "^5.0.2", | ||
"@vitejs/plugin-vue": "^4.0.0", | ||
"animate.css": "^4.1.1", | ||
"autoprefixer": "^10.4.13", | ||
"daisyui": "^2.51.2", | ||
"jquery": "^3.6.3", | ||
"postcss": "^8.4.21", | ||
"resize-observer-polyfill": "^1.5.1", | ||
"simplebar": "^6.2.1", | ||
"stylus": "^0.59.0", | ||
"tailwindcss": "^3.2.7", | ||
"vite": "^4.1.4" | ||
"vite": "^4.1.4", | ||
"vue": "^3.2.47" | ||
} | ||
} |
Oops, something went wrong.