Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
bb8fc52
update to last svelte 4 version
FrazzIe Dec 25, 2024
0a139e1
put global reset in a overridable layer
FrazzIe Dec 25, 2024
cbb5e88
fix nav tabs alignment and icon size responsiveness
FrazzIe Dec 25, 2024
69c6868
simpkify center placement of component
FrazzIe Dec 25, 2024
5f3bccc
add sematics els, remove absolute positioning
FrazzIe Dec 25, 2024
5c374ca
disable unused help center
FrazzIe Dec 25, 2024
0ef04c5
improve app sizing on lower res
FrazzIe Dec 25, 2024
e896454
remove I prefix
FrazzIe Dec 25, 2024
8bbed78
remove unused backdropfix comp
FrazzIe Dec 25, 2024
1eb6496
allow changing realtor grades
FrazzIe Dec 26, 2024
b3a95d3
remove unused tabs component
FrazzIe Dec 26, 2024
a17b0f3
support tab actions
FrazzIe Dec 26, 2024
c7c6df1
cleanup properties search bar
FrazzIe Dec 26, 2024
aa9d076
use rem font-sizes with 100% default
FrazzIe Dec 26, 2024
80c21a0
use tailwind defaults for fonts
FrazzIe Dec 26, 2024
48bf7cd
fix property search sizing
FrazzIe Dec 26, 2024
2f7cca8
fix property list form
FrazzIe Dec 26, 2024
fe46a69
fix no new property view
FrazzIe Dec 26, 2024
7e7d69e
dropdown refactor
FrazzIe Dec 27, 2024
cb6d183
convert dropdowns on properties page
FrazzIe Dec 27, 2024
f3aedd5
make properties search area smaller
FrazzIe Dec 27, 2024
f9750f1
simplify dropdown usage, use a callback prop
FrazzIe Dec 27, 2024
e436372
add a simple dropdown to handle true/false setup
FrazzIe Dec 27, 2024
4c1fbd0
remove duplicate dropdown
FrazzIe Dec 27, 2024
441951b
convert form dropdowns to new dropdowns
FrazzIe Dec 27, 2024
b941d12
type shells as an object at least
FrazzIe Dec 27, 2024
7a7bc9e
limit dropdown overflowing, allow overflowing x,y
FrazzIe Dec 27, 2024
98eed2d
fix dropdown class names
FrazzIe Dec 27, 2024
a47e0e7
add a scrollbar
FrazzIe Dec 27, 2024
7c0995d
add simple card
FrazzIe Dec 27, 2024
7a44ca0
use card for list new property
FrazzIe Dec 27, 2024
3b22544
add tile component
FrazzIe Dec 29, 2024
78e2479
refactor property card
FrazzIe Dec 29, 2024
1036eb5
add spacer class
FrazzIe Dec 29, 2024
468b343
increase base menu size
FrazzIe Dec 29, 2024
159e72a
lower header sizes
FrazzIe Dec 29, 2024
5169088
convert scrollbar to rem
FrazzIe Dec 29, 2024
6e9d568
try out auto-fill grid for properties
FrazzIe Dec 29, 2024
0e055a0
allow for random prices > 1m
FrazzIe Dec 29, 2024
1448cef
fix on hover issue
FrazzIe Dec 29, 2024
7301322
tile override colors, border toggle
FrazzIe Dec 30, 2024
3630a82
add card header action slot
FrazzIe Dec 30, 2024
2857176
allow setting dropdown id
FrazzIe Dec 30, 2024
2f1cca9
fix dropdown toggle
FrazzIe Dec 30, 2024
8accde5
add modal component
FrazzIe Dec 30, 2024
f8239bd
add form control component
FrazzIe Dec 30, 2024
98982d0
add button component
FrazzIe Dec 30, 2024
ebbc8b7
make button use class, add block option
FrazzIe Dec 30, 2024
a45c200
simplify header sizes
FrazzIe Dec 30, 2024
3119e9a
remove global button brightness
FrazzIe Dec 30, 2024
91e8ba2
move frequently used gradient into var
FrazzIe Dec 30, 2024
abd286b
allow dropdown flex
FrazzIe Dec 30, 2024
bcb1625
remove min-width requirement from input, textarea
FrazzIe Dec 30, 2024
602603f
fix type issues with properties
FrazzIe Dec 30, 2024
436b701
allow toggle dropdown flex
FrazzIe Dec 30, 2024
1ea8d26
refactor property details modal
FrazzIe Dec 30, 2024
4eee4ef
property details cleanup
FrazzIe Dec 30, 2024
c8847e5
increase card body def padding
FrazzIe Dec 30, 2024
67e6bdb
property management refactor
FrazzIe Dec 30, 2024
8235c39
give control of open/close state to modal
FrazzIe Jan 1, 2025
09cc512
apartments refactor
FrazzIe Jan 1, 2025
0ce69e0
refactor apartment card
FrazzIe Jan 1, 2025
572ad1a
fix apartment gaps
FrazzIe Jan 1, 2025
9edc3fd
refactor apartments modal
FrazzIe Jan 1, 2025
8194ed9
rem unused style
FrazzIe Jan 1, 2025
b2b3f60
property component cleanups
FrazzIe Jan 1, 2025
caaec7b
add global form-control styles
FrazzIe Jan 1, 2025
dcb086a
remove unused components
FrazzIe Jan 2, 2025
e985f42
add empty msgs
FrazzIe Jan 2, 2025
37a349a
remove unused styles
FrazzIe Jan 2, 2025
03aeee3
list property refactor
FrazzIe Jan 2, 2025
b1a34e3
support icon only button
FrazzIe Jan 2, 2025
944bbe9
make form control props optional
FrazzIe Jan 2, 2025
361db96
cleanup unused styles
FrazzIe Jan 2, 2025
3b50bb6
new banner images, png -> webp
FrazzIe Jan 3, 2025
ffc60a8
fix first new property prompt
FrazzIe Jan 3, 2025
baa79e6
refactor realtor menu
FrazzIe Jan 3, 2025
650c905
add background color to colors
FrazzIe Jan 3, 2025
a8a84e9
remove realtor menu css
FrazzIe Jan 3, 2025
2ff6c5a
add styling for small icons
FrazzIe Jan 3, 2025
5aef158
add apartment card hover effect
FrazzIe Jan 3, 2025
24d8c43
cleanup btn, add justify, styles, none status
FrazzIe Jan 3, 2025
91d9609
cleanup set indicator
FrazzIe Jan 3, 2025
adb438a
adjust menu on lower resolutions
FrazzIe Jan 3, 2025
815688c
derived store for shell types, auto remove 'mlo' shell
FrazzIe Jan 3, 2025
96027de
add width, height constraints to house img
FrazzIe Jan 3, 2025
ad4b84e
prevent selecting sidebar header text
FrazzIe Jan 3, 2025
b38214a
fix dropdown btn being cut off
FrazzIe Jan 3, 2025
423c038
fix property search bar scaling
FrazzIe Jan 3, 2025
3414cb8
add needed aria labels for icon btns
FrazzIe Jan 3, 2025
67cc8ee
properties cleanups
FrazzIe Jan 3, 2025
dcc1be0
cap sidebar width on resolutions >1080p
FrazzIe Jan 3, 2025
8e05156
fix property features spacing
FrazzIe Jan 4, 2025
cdab979
add filter types, fix filter sizing, add 'all' option for properties
FrazzIe Jan 4, 2025
b4bd7a9
cleanup for sale filter
FrazzIe Jan 4, 2025
0647cc0
fix default tab
FrazzIe Jan 4, 2025
8ad6256
allow setting waypoint for apartments
FrazzIe Jan 4, 2025
e68ec9c
allow setting waypoints to apartments from properties
FrazzIe Jan 4, 2025
99d992e
only apply padding if card footer is not empty
FrazzIe Jan 4, 2025
c8bf006
add zone type
FrazzIe Jan 4, 2025
c76b733
prevent managing of apartments
FrazzIe Jan 4, 2025
172643e
add types to store values
FrazzIe Jan 4, 2025
52163a2
use fallback image, when image fails to load, set fixed height for im…
FrazzIe Jan 5, 2025
d8ddf97
allow image delete & shifts, show image labels
FrazzIe Jan 5, 2025
8898c95
fix sizing issues
FrazzIe Jan 5, 2025
9432434
fix property name layout
FrazzIe Jan 5, 2025
ba51146
add property image type
FrazzIe Jan 5, 2025
b7a0027
unset garden after creation
FrazzIe Jan 6, 2025
3a54531
prevent invalid prices and empty owners
FrazzIe Jan 6, 2025
253d969
add additional property tiles, hide price for apts
FrazzIe Jan 6, 2025
538de78
delete more unused components
FrazzIe Jan 6, 2025
fd7339a
fix set waypoint not working with mlos
FrazzIe Jan 12, 2025
f4ed779
add missing images
FrazzIe Feb 3, 2025
a1d3df5
Merge branch 'main' of https://github.com/Project-Sloth/ps-realtor in…
FrazzIe Feb 3, 2025
15dfafb
update build
FrazzIe Feb 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions client/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,18 @@ end)

-- Callbacks
RegisterNUICallback("setWaypoint", function (data, cb)
if data.type == 'house' and data.x == nil and data.y == nil then
local location = lib.callback.await("bl-realtor:server:getPropertyLocation", source, data.id, data.shell);

data.x = location.x;
data.y = location.y;
end

if data.x == nil and data.y == nil then
lib.notify({ description = 'Unable to set waypoint!' , type = 'error'})
return
end

lib.notify({ description = 'Waypoint was set!' , type = 'success'})
SetNewWaypoint(data.x, data.y)
cb("ok")
Expand Down
Binary file removed html/images/House.png
Binary file not shown.
Binary file added html/images/apartment-banner.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added html/images/apartment-card.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added html/images/app-banner.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed html/images/apt-card-img.png
Binary file not shown.
Binary file removed html/images/apts-bg.png
Binary file not shown.
Binary file removed html/images/discord-emoji.png
Binary file not shown.
1 change: 1 addition & 0 deletions html/images/fallback-image.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added html/images/house.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added html/images/properties-banner.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added html/images/property-banner.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed html/images/property-card-img.png
Binary file not shown.
Binary file added html/images/property-card.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed html/images/user-location-pin.png
Binary file not shown.
2 changes: 1 addition & 1 deletion html/index.css

Large diffs are not rendered by default.

58 changes: 28 additions & 30 deletions html/index.html
Original file line number Diff line number Diff line change
@@ -1,31 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<!-- FontAwesome Icons Import -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css">
<!-- Material Icons Import -->
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<!-- Material Design Icons Import -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font/css/materialdesignicons.min.css">
<!-- Line Awesome Icons Import -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/line-awesome/dist/line-awesome/css/line-awesome.min.css">
<!-- Boostrap Icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.min.css">

<!-- Satoshi Font -->
<link href="https://fonts.cdnfonts.com/css/satoshi" rel="stylesheet">



<title>FIVEM</title>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<!-- FontAwesome Icons Import -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css">
<!-- Material Icons Import -->
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<!-- Material Design Icons Import -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font/css/materialdesignicons.min.css">
<!-- Line Awesome Icons Import -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/line-awesome/dist/line-awesome/css/line-awesome.min.css">
<!-- Boostrap Icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.min.css">

<!-- Satoshi Font -->
<link href="https://fonts.cdnfonts.com/css/satoshi" rel="stylesheet">


<title>FIVEM</title>
<script type="module" crossorigin src="./index.js"></script>
<link rel="stylesheet" href="./index.css">
</head>
<body>
<div id="app"></div>

</body>
</html>
<link rel="stylesheet" crossorigin href="./index.css">
</head>
<body>
<div id="app"></div>
</body>
</html>
Expand Down
27 changes: 1 addition & 26 deletions html/index.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions server/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ lib.callback.register("bl-realtor:server:getNames", function (source, data)
return names
end)

lib.callback.register("bl-realtor:server:getPropertyLocation", function(source, propertyId, shell)
local door = exports['ps-housing']:getMainDoor(propertyId, 1, shell ~= 'mlo')
return door ~= nil and vector2(door.coords.x, door.coords.y) or vector2(0);
end)

if Config.UseItem then
QBCore.Functions.CreateUseableItem(Config.ItemName, function(source, item)
local src = source
Expand Down
71 changes: 0 additions & 71 deletions ui/css/apartments/apartment-card.css

This file was deleted.

24 changes: 0 additions & 24 deletions ui/css/apartments/apartments.css

This file was deleted.

187 changes: 0 additions & 187 deletions ui/css/apartments/selected-apartment.css

This file was deleted.

4 changes: 4 additions & 0 deletions ui/css/colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@
--red-color: rgba(220, 38, 38, 1);

--circle-color: rgba(75, 75, 75, 1);

--control-background-gradient: linear-gradient(0deg, #313131, #313131), linear-gradient(0deg, var(--light-border-color-2), var(--light-border-color-2));

--background-color: #131313;
}
Loading