Gitlab@Informatics
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PQS-Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
65160206
PQS-Frontend
Commits
e69022b6
Commit
e69022b6
authored
1 month ago
by
65160206
Browse files
Options
Downloads
Patches
Plain Diff
fix image login
parent
32ff6e4d
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
Dockerfile
+14
-3
14 additions, 3 deletions
Dockerfile
npm
+0
-0
0 additions, 0 deletions
npm
public/img/human.png
+0
-0
0 additions, 0 deletions
public/img/human.png
src/views/LoginView.vue
+9
-18
9 additions, 18 deletions
src/views/LoginView.vue
vite.config.ts
+2
-5
2 additions, 5 deletions
vite.config.ts
with
25 additions
and
26 deletions
Dockerfile
+
14
−
3
View file @
e69022b6
# Build stage
#
👉
Build stage
FROM
node:18
AS
builder
WORKDIR
/app
# ติดตั้ง dependencies
COPY
package*.json ./
RUN
npm
install
# คัดลอก source code ทั้งหมด
COPY
. .
# สร้าง production build
RUN
npm run build
# Production stage
#
👉
Production stage
FROM
nginx:stable-alpine
# คัดลอกไฟล์ที่ build แล้ว ไปยัง nginx
COPY
--from=builder /app/dist /usr/share/nginx/html
# copy nginx config if needed (optional)
# คัดลอก public folder เข้าไปด้วย (เผื่อมีรูปหรือ static อื่นๆ)
COPY
public /usr/share/nginx/html
# 🔧 (ถ้ามี custom nginx config)
# COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE
80
CMD
["nginx", "-g", "daemon off;"]
This diff is collapsed.
Click to expand it.
npm
0 → 100644
+
0
−
0
View file @
e69022b6
This diff is collapsed.
Click to expand it.
src/assets
/human.png
→
public/img
/human.png
+
0
−
0
View file @
e69022b6
File moved
This diff is collapsed.
Click to expand it.
src/views/LoginView.vue
+
9
−
18
View file @
e69022b6
...
...
@@ -29,26 +29,15 @@ const onSubmit = async () => {
<!-- Login Form -->
<form>
<v-img
src=
"
\src\assets\
human.png"
height=
"100"
></v-img>
<v-img
src=
"
./img/
human.png"
height=
"100"
></v-img>
<br
/>
<v-form
ref=
"refForm"
v-model=
"form"
@
submit.prevent=
"onSubmit"
>
<v-text-field
v-model=
"email"
:rules=
"[required]"
density=
"compact"
placeholder=
"User"
prepend-inner-icon=
"mdi-account"
></v-text-field>
<v-text-field
v-model=
"password"
:append-inner-icon=
"visible ? 'mdi-eye-off' : 'mdi-eye'"
:type=
"visible ? 'text' : 'password'"
density=
"compact"
placeholder=
"Enter your password"
prepend-inner-icon=
"mdi-lock-outline"
:rules=
"[(v) => !!v || 'Field is required']"
@
click:append-inner=
"visible = !visible"
></v-text-field>
<v-text-field
v-model=
"email"
:rules=
"[required]"
density=
"compact"
placeholder=
"User"
prepend-inner-icon=
"mdi-account"
></v-text-field>
<v-text-field
v-model=
"password"
:append-inner-icon=
"visible ? 'mdi-eye-off' : 'mdi-eye'"
:type=
"visible ? 'text' : 'password'"
density=
"compact"
placeholder=
"Enter your password"
prepend-inner-icon=
"mdi-lock-outline"
:rules=
"[(v) => !!v || 'Field is required']"
@
click:append-inner=
"visible = !visible"
></v-text-field>
<br
/>
...
...
@@ -275,6 +264,7 @@ input[type='text']::placeholder {
.underlineHover
:hover:after
{
width
:
100%
;
}
*
:focus
{
outline
:
none
;
}
...
...
@@ -286,5 +276,6 @@ input[type='text']::placeholder {
*
{
box-sizing
:
border-box
;
}
/* text field */
</
style
>
This diff is collapsed.
Click to expand it.
vite.config.ts
+
2
−
5
View file @
e69022b6
import
{
fileURLToPath
,
URL
}
from
'
node:url
'
import
{
defineConfig
}
from
'
vite
'
import
vue
from
'
@vitejs/plugin-vue
'
import
vueJsx
from
'
@vitejs/plugin-vue-jsx
'
// https://vitejs.dev/config/
export
default
defineConfig
({
plugins
:
[
vue
(),
vueJsx
(),
],
base
:
'
./
'
,
// ← เพิ่มบรรทัดนี้
plugins
:
[
vue
(),
vueJsx
()],
resolve
:
{
alias
:
{
'
@
'
:
fileURLToPath
(
new
URL
(
'
./src
'
,
import
.
meta
.
url
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment