Skip to content

Commit

Permalink
Release: v1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
XPH0816 committed Jun 21, 2024
1 parent 6ee9766 commit 3c182e0
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 10 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ jobs:
node-version: 20
cache: 'pnpm' # Set this to npm, yarn or pnpm.

- name: setup key (windows only)
if: matrix.settings.platform == 'windows-latest'
run: |
./setup-key.bat
- name: setup key (macos and linux only)
if: matrix.settings.platform != 'windows-latest'
run: |
chmod +x ./setup-key.sh
./setup-key.sh
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "libraryroombookingsystem",
"private": true,
"version": "1.0.2",
"version": "1.0.3",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

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

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "LibraryRoomBookingSystem"
version = "1.0.2"
version = "1.0.3"
description = "A Library Room Booking System built with Tauri and Rust"
authors = ["Lim Shi Song limshisong123@gmail.com"]
edition = "2021"
Expand Down
4 changes: 2 additions & 2 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"build": {
"beforeDevCommand": "pnpm dev",
"beforeBuildCommand": "pnpm build && setup-key",
"beforeBuildCommand": "pnpm build",
"devPath": "http://localhost:1420",
"distDir": "../build"
},
"package": {
"productName": "LibraryRoomBookingSystem",
"version": "1.0.2"
"version": "1.0.3"
},
"tauri": {
"allowlist": {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/forms/BookingForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
let endDateTime = new Date(dateTime);
endDateTime = GetEndDateTime(endDateTime, room.duration);
checkOutTime = formatTime(endDateTime);
changeDate();
if (checkInDate !== checkOutDate && isNotHikmahRoomAndEksplorasiRoom(roomName)) changeDate();
};
let changeEndTime = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/forms/FeedBackForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
/>
</FormGroup>
{#if data.admin_id}
<FormGroup floating label="Admin ID">
<FormGroup floating label="Reply By">
<Input type="text" bind:value={data.admin_id} disabled />
</FormGroup>
{/if}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/repos/feedbackRepo.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class FeedBackRepo {
edit: "/feedback/form?id=" + feedback.id + "&edit=true",
};
data = {
id: feedback.id,
feedback_id: feedback.id,
date: feedback.date,
content: feedback.content,
status: feedback.status,
Expand All @@ -37,7 +37,7 @@ export class FeedBackRepo {
reply: "/manage/feedback/form?id=" + feedback.id + "&edit=true",
}
data = {
id: feedback.id,
feedback_id: feedback.id,
user_id: feedback.user_id,
date: feedback.date,
content: feedback.content,
Expand Down
1 change: 1 addition & 0 deletions src/lib/repos/userManageRepo.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export class userManageRepo {
constructor(users = []) {
this.datas = users.map(user => {
return {
user_id: user.id,
username: user.username,
email: user.email,
phone: user.phone,
Expand Down
2 changes: 1 addition & 1 deletion src/routes/(admin)/manage/feedback/form/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
}
: {
user_id: data.user.username,
admin_id: $user.id,
admin_id: $user.username,
date: formatDate(new Date()),
status: data.feedback.status,
};
Expand Down

0 comments on commit 3c182e0

Please sign in to comment.