Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1608 commits
Select commit Hold shift + click to select a range
2287e40
Marketplace LTD fix
billsonnn Aug 1, 2022
1f8dd2a
Don't show friend request button for yourself
billsonnn Aug 1, 2022
34f1379
Fix chat clicking
billsonnn Aug 2, 2022
b38ec57
Fix canvas / background resizing
billsonnn Aug 2, 2022
5c77354
Fix the error I made
billsonnn Aug 2, 2022
9c9b65c
Infostand layout changes
billsonnn Aug 3, 2022
8fb9a9a
Changes
billsonnn Aug 4, 2022
b06e6b4
Fix badge only catalog items
billsonnn Aug 4, 2022
abf4034
Bump renderer version
billsonnn Aug 4, 2022
093598d
Chat changes
billsonnn Aug 4, 2022
690071a
Version 2.1.0
billsonnn Aug 4, 2022
5a7f356
Merge branch 'dev' into 'main'
billsonnn Aug 4, 2022
a8250e9
tab icons, navigation indent, catalog headers
Laynester Aug 5, 2022
211dab3
Merge branch 'dev' into 'relative-paths'
brenoepics Aug 5, 2022
5896976
Fix auto-scroll helper chat (Issue #208)
oobjectt Aug 5, 2022
fafd0c9
Fix prevent zalgo-text (Issue #23)
oobjectt Aug 6, 2022
21ac9e3
Fix feature #238 - Inventory (badges)
oobjectt Aug 6, 2022
1f44686
Fix feature #238 - Inventory (bots)
oobjectt Aug 6, 2022
2222540
Fix feature #238 - Inventory (items)
oobjectt Aug 6, 2022
2c30a5e
Fix feature #238 - Inventory (pets)
oobjectt Aug 6, 2022
4bdbc07
Add new funcionality for stickies notes !
oobjectt Aug 6, 2022
b4dabe5
Add new scss images for stickies notes
oobjectt Aug 6, 2022
e7eb538
New hook 'type' for stickie notes !
oobjectt Aug 6, 2022
1023624
Dreams stickie note
oobjectt Aug 6, 2022
15805da
Juninas stickie note
oobjectt Aug 6, 2022
1a650a4
Shakesp stickie note
oobjectt Aug 6, 2022
e64d078
Heart stickie note
oobjectt Aug 6, 2022
b578189
Merge branch 'zalgo-text' into '@fix/zalgo-text'
billsonnn Aug 7, 2022
77d65b5
Merge branch '@feature/inventory' into '@fix/zalgo-text'
billsonnn Aug 7, 2022
88b4b8d
Merge branch '@feature/sticky-notes' into '@fix/zalgo-text'
billsonnn Aug 8, 2022
e4ca9dd
Merge branch 'relative-paths' into '@fix/zalgo-text'
billsonnn Aug 8, 2022
6dcb143
Merge branch 'auto-scroll-guidetool' into '@fix/zalgo-text'
billsonnn Aug 8, 2022
874d3ef
Fix the if statement
billsonnn Aug 8, 2022
60546d2
Fix catalog purchase extra data
billsonnn Aug 8, 2022
0d1edb7
Fix wired furni selection
billsonnn Aug 8, 2022
797362d
Fix room thumbnail camera bounds
billsonnn Aug 9, 2022
d27b4b6
Fix wired again
billsonnn Aug 9, 2022
3f3827d
Fix avatar editor scrolling
billsonnn Aug 9, 2022
b21cd29
Replace stickie-juninas.png
RasmusKD Aug 10, 2022
1faa86c
Replace stickie-dreams.png
RasmusKD Aug 10, 2022
0c79b63
Adding new buttons in right panel
oobjectt Aug 10, 2022
40953a4
Listening new states for the respects count
oobjectt Aug 10, 2022
ae9220d
Listening new state for respects and replace treat
oobjectt Aug 10, 2022
e9715df
Add new global export
oobjectt Aug 10, 2022
75f7ffa
New hook for the pets
oobjectt Aug 10, 2022
33f0403
Fix SelectReportedChatsView
billsonnn Aug 11, 2022
400279a
Fix change name
billsonnn Aug 11, 2022
e42f8ea
Merge branch 'dev' into 'dev'
billsonnn Aug 12, 2022
29c8194
Fix / New input for trade amount
oobjectt Aug 12, 2022
2309784
Merge branch 'fix-trade-amount' into '@fix/trade-quantity'
billsonnn Aug 13, 2022
6a67bce
New util for monsterplants
oobjectt Aug 13, 2022
1168163
New export for monsterplants
oobjectt Aug 13, 2022
4da3eda
New image for counter-time monsterplant
oobjectt Aug 13, 2022
5b7ea5d
Added scss for image counter monsterplant
oobjectt Aug 13, 2022
b6ffaad
New layout for monsterplant
oobjectt Aug 13, 2022
ae4a6a1
Added new export layout
oobjectt Aug 13, 2022
7745106
Css for monsterplant
oobjectt Aug 13, 2022
037dc14
Update component (incluying pet buttons right)
oobjectt Aug 13, 2022
25bb187
Reset trade quantity, fix template
billsonnn Aug 14, 2022
cf78b7d
Ability to change maximum wired message length
berkibap Aug 15, 2022
f43e8df
Merge branch 'dev' into '@fix/fixes'
billsonnn Aug 15, 2022
2a87e99
Fix number stacktile
oobjectt Aug 17, 2022
59e2924
Add configurable wired message lengths
billsonnn Aug 17, 2022
cff5eac
Merge branch 'fix-number-stacktile' into '@fix/fixes'
billsonnn Aug 17, 2022
3343c9e
Fix placing furni when is a gift
oobjectt Aug 17, 2022
863c1f2
Update FurnitureStackHeightWidget
billsonnn Aug 17, 2022
d4cb1ba
Merge branch 'added-buttons-animal-right-panel' into '@fix/fixes'
billsonnn Aug 17, 2022
d1e23ff
Move respect to the session hook
billsonnn Aug 17, 2022
35464d2
Merge branch '@fix/fixes' into 'fix-monsterplant-info-like-habbo'
billsonnn Aug 17, 2022
a6ff5b0
Merge branch 'fix-monsterplant-info-like-habbo' into '@fix/fixes'
billsonnn Aug 17, 2022
adce1d7
Merge branch 'fix-place-furni-gift' into '@fix/fixes'
billsonnn Aug 18, 2022
6b1d9f1
Update monsterplant infostand
billsonnn Aug 18, 2022
f47cbb4
Update the place function
billsonnn Aug 18, 2022
3e47c92
Merge branch '@feature/catalog-changes' into '@fix/fixes'
billsonnn Aug 18, 2022
a32bc72
Update catalog scrolling
billsonnn Aug 18, 2022
787df48
Catalog updates
billsonnn Aug 18, 2022
ccfda25
Fix scrolling in the navigator
billsonnn Aug 18, 2022
a587e65
Fix #252
billsonnn Aug 18, 2022
3ec211c
Card size/position is now stored in LocalStorage
billsonnn Aug 18, 2022
d529a16
Reset the sizes if the screen size changes
billsonnn Aug 18, 2022
81fc41c
Center the catalog header
billsonnn Aug 18, 2022
22fc5f2
Catalog navigation scrolling changes
billsonnn Aug 18, 2022
1214391
Fix input in marketplace post offer
billsonnn Aug 18, 2022
04df6a7
Bump version 2.1.1
billsonnn Aug 18, 2022
607bcbc
Fix LTD catalog widget placement
billsonnn Aug 20, 2022
e7e8eca
Roll back local storage cards, fix catalog.headers
billsonnn Aug 24, 2022
ef22211
Chat History update
MyNameIsBatman Sep 17, 2022
380562c
Oops, forgot this one
MyNameIsBatman Sep 17, 2022
a954fa2
sorry im dumb and i forgot a default value
MyNameIsBatman Sep 17, 2022
3d3e66e
Make search lookup names too
MyNameIsBatman Sep 17, 2022
651e043
Fix search
MyNameIsBatman Sep 17, 2022
a0c53f2
Fix chat history
billsonnn Sep 20, 2022
b1353c6
New photo gallery on camera - Issue #128
oobjectt Sep 20, 2022
cc4e11c
Merge branch 'photo-gallery-camera' into 'dev'
billsonnn Sep 20, 2022
f6c9d30
Crafting! (NOT DONE YET, DON'T USE IT)
MyNameIsBatman Sep 20, 2022
2fd3550
Merge branch 'dev' of https://git.krews.org/nitro/nitro-react into dev
MyNameIsBatman Sep 20, 2022
b402ea9
Fix FurnitureExternalImageView
billsonnn Sep 20, 2022
c6e4f00
Crafting updates (still missing some details)
MyNameIsBatman Sep 20, 2022
0a96dd2
Merge branch 'dev' of https://git.krews.org/nitro/nitro-react into dev
MyNameIsBatman Sep 20, 2022
02a0a45
Clear confirmation on recipe selected
MyNameIsBatman Sep 20, 2022
c080738
Update crafting
billsonnn Sep 21, 2022
cf6d831
Fix chat history search
MyNameIsBatman Sep 21, 2022
ad691cd
Remove some useCallback
billsonnn Sep 22, 2022
e569403
Fix catalog search issues
billsonnn Sep 22, 2022
9118a0a
Allow users to leave private groups
Sep 22, 2022
1b789d5
Merge branch 'dev' into 'dev'
billsonnn Sep 23, 2022
d5780de
Fix crafting
MyNameIsBatman Sep 30, 2022
0445a70
Update WiredConditionActorIsWearingEffectView.tsx
oobjectt Oct 14, 2022
1a7954f
Merge branch 'fix-wired-wearing-avatar-effect' into 'dev'
billsonnn Oct 16, 2022
6be5ecd
Adding code for the animated badges
oobjectt Oct 16, 2022
0fd48e2
Adding event for hopper
oobjectt Oct 22, 2022
d985318
New events for guardian/helpers
oobjectt Oct 22, 2022
e62d26d
Update virtual lists
billsonnn Oct 24, 2022
7bac43a
Update achievements
billsonnn Oct 24, 2022
957d2e5
Remove classnames dependency
billsonnn Oct 24, 2022
31fef8f
Change conditions
Oct 24, 2022
7a732a0
Merge branch 'fix-text-invalid-floor' into 'dev'
billsonnn Oct 25, 2022
1bbc599
Update FurnitureContextMenuView.tsx
billsonnn Oct 26, 2022
16b03de
Merge branch 'fix-unmet-hopper' into 'dev'
billsonnn Oct 26, 2022
d372de1
Update LayoutBadgeImageView.tsx
billsonnn Oct 26, 2022
0b8a4cb
Merge branch 'animated-badges' into 'dev'
billsonnn Oct 26, 2022
721c74d
Fix crafting recipe key
MyNameIsBatman Oct 26, 2022
05704bc
Fix achievement image (bill broke it)
MyNameIsBatman Oct 26, 2022
835d53c
Update LayoutBadgeImageView.tsx
LiveHappens Oct 27, 2022
89b3fbf
Merge branch 'Live-dev-patch-33042' into 'dev'
Laynester Oct 27, 2022
8fe6c7a
Update unseenTracker
billsonnn Oct 29, 2022
1b65580
navigator show more & force collapsed
Laynester Nov 2, 2022
2170e0f
Fix the Youtube playlist layout
duckietm Nov 3, 2022
306b650
Merge branch 'dev' into 'dev'
s074 Nov 7, 2022
175f5ce
Merge branch 'fix-if-guardian-is-not-available' into 'dev'
s074 Nov 8, 2022
eaaabe8
Updates for renderer changes
billsonnn Nov 8, 2022
f8024ff
Bump renderer version
billsonnn Nov 8, 2022
d46bde2
Bump renderer version
billsonnn Nov 8, 2022
5737bfc
Bump renderer version
billsonnn Nov 8, 2022
0ed6018
Fix FurnitureBackgroundColorView
MyNameIsBatman Nov 9, 2022
811ad9b
start game center, missing queue window n such
Laynester Nov 9, 2022
8e76480
add to ui config
Laynester Nov 9, 2022
98a6233
Updates for nitro-renderer
billsonnn Nov 9, 2022
adb707b
Merge branch 'dev' into @feature/game-center
billsonnn Nov 9, 2022
d55cc3d
Update for asset manager
billsonnn Nov 9, 2022
93f4901
Another change
billsonnn Nov 9, 2022
c5f6468
Merge branch 'dev' into @feature/game-center
billsonnn Nov 9, 2022
9cd902b
Bump renderer version
billsonnn Nov 10, 2022
3142b70
Merge branch '@feature/game-center' into 'dev'
billsonnn Nov 10, 2022
7df54b4
Bump renderer version
billsonnn Nov 10, 2022
1bebccd
Add avatar double click event
billsonnn Nov 13, 2022
e9f89b4
Update chat
billsonnn Nov 14, 2022
8855a56
Update web worker for chat
billsonnn Nov 14, 2022
0ea5ae4
Fix wired furni selector when changing wireds
billsonnn Nov 14, 2022
a6c9856
Chat & reporting updates
billsonnn Nov 16, 2022
31f475b
fix reporting
s074 Nov 16, 2022
ed06ecc
Bump renderer version
billsonnn Nov 16, 2022
10e8629
@feature/jukebox
s074 Nov 16, 2022
4194587
Merge branch '@feature/jukebox' into 'dev'
billsonnn Nov 16, 2022
2e64343
fix jukebox on null playlist
s074 Nov 16, 2022
4d04b73
open trax songs catalog page on button click
s074 Nov 16, 2022
07cfce3
Fix InfiniteScroll bug
billsonnn Nov 17, 2022
b8f508e
Fix achievements seen
billsonnn Nov 17, 2022
d1b8ddc
fix messenger scroll
s074 Nov 19, 2022
ba388bc
Bump renderer, update config
billsonnn Nov 19, 2022
f815e40
Bump renderer
billsonnn Nov 19, 2022
917607e
Allow multiple badge packets
billsonnn Nov 21, 2022
bd88cf0
Update badges again
billsonnn Nov 21, 2022
17332b3
Fix issue #11 - Report user photos
oobjectt Dec 8, 2022
b1dd37c
Add scroller to youtube playlist and cleanup, added header (#77)
duckietm Dec 10, 2022
3dac850
Issue #17 - Catalog room events
oobjectt Dec 10, 2022
6ea6b24
Report room enabled
oobjectt Dec 10, 2022
f099178
Guide - Invite button enabled
oobjectt Dec 10, 2022
98c2ab2
Update control if guide is in a room
oobjectt Dec 10, 2022
bbda696
Changed requested changes
oobjectt Dec 11, 2022
f1f703d
Issue #75 - Room settings tags
oobjectt Dec 13, 2022
c5f246e
fix the shit
Laynester Dec 13, 2022
0522360
change image
Laynester Dec 13, 2022
fdde6a9
fix purchasing & the colours
Laynester Dec 13, 2022
20570c8
seperate box types
Laynester Dec 13, 2022
a5d819b
Fixed required changes
oobjectt Dec 13, 2022
5db58bb
Merge pull request #81 from oobjectt/catalog-room-events
billsonnn Dec 14, 2022
8c920e8
Merge pull request #78 from oobjectt/report-user-photos
billsonnn Dec 14, 2022
afb5156
Merge pull request #83 from oobjectt/report-room-info
billsonnn Dec 14, 2022
2a44b55
Merge pull request #84 from oobjectt/guide-helper-invite
billsonnn Dec 14, 2022
5b566be
Merge pull request #87 from oobjectt/room-settings-tags
billsonnn Dec 14, 2022
c9d462e
Merge pull request #88 from billsonnn/@bug-fix/default-gift
billsonnn Dec 14, 2022
80e72f6
targeted offers (#89)
Laynester Dec 14, 2022
14d2067
add some null checks
s074 Dec 18, 2022
b92a74f
New panel for pet training
oobjectt Dec 19, 2022
7481d8f
Changing details
oobjectt Dec 20, 2022
432aade
Added action for pet commands
oobjectt Dec 20, 2022
2ad253c
Ejectall Confirmation (#93)
Snaiker Dec 21, 2022
1e814d3
Fix button Buy food (#101)
oobjectt Dec 22, 2022
2a153d3
Issue #56 - Added configuration for helpers and quets (#100)
oobjectt Dec 22, 2022
97264d3
catch possible permission error from localstorage (#103)
s074 Dec 23, 2022
90d2bd5
change background toner to use rgb input (#105)
s074 Dec 23, 2022
7696b59
fix hex color padding
s074 Dec 23, 2022
a2772c3
Notification Simple Alert Event
Dec 26, 2022
9113091
Issue #74 - Room settings filter (#91)
oobjectt Jan 3, 2023
b7c9674
Feature/mystery box (#85)
s074 Jan 3, 2023
cb2a610
Notification Error Event (#108)
Snaiker Jan 3, 2023
a208121
Feature - User tags (#104)
oobjectt Jan 3, 2023
af29549
add listener for ExtendedProfileChangedMessageEvent packet (#112)
s074 Jan 3, 2023
be73e00
update packet data (#90)
s074 Jan 3, 2023
dab7919
Merge branch 'new-simple-alert-event' of https://github.com/Snaiker/n…
s074 Jan 3, 2023
5399edf
Merge branch 'Snaiker-new-simple-alert-event' into dev
s074 Jan 3, 2023
f469c36
Merge branch 'dev' of https://github.com/billsonnn/nitro-react into dev
s074 Jan 3, 2023
be898ec
Merge branch 'pet-training' of https://github.com/oobjectt/nitro-reac…
s074 Jan 3, 2023
e74a52d
Merge branch 'oobjectt-pet-training' into dev
s074 Jan 3, 2023
76c3ceb
Vite & Landscapes (#117)
billsonnn Jan 3, 2023
30fd4dd
Temporarily remove emoji library
billsonnn Jan 3, 2023
714d60e
Remove old craco file, rename dist directory
billsonnn Jan 3, 2023
910de12
Bump renderer version
billsonnn Jan 3, 2023
dca27a3
Update InfiniteScroll, fix chat history scroll
billsonnn Jan 4, 2023
373039f
Add null check to ChatInputView
billsonnn Jan 4, 2023
feabfcc
Fix pet training window
billsonnn Jan 5, 2023
193e2a8
allow white colors in color grouping cata layout
s074 Jan 6, 2023
26cf38b
Pet package widget (#127)
oobjectt Jan 12, 2023
4d71dd7
pet package doesn't need masks
s074 Jan 12, 2023
a469bd8
Bump renderer version
billsonnn Jan 13, 2023
fc71622
fix badge inventory (#128)
s074 Jan 13, 2023
a6a3070
Bump renderer version
billsonnn Jan 13, 2023
010750d
Bump renderer version
billsonnn Jan 14, 2023
ec505d5
Add clubgifts requirements & correct sorting (#119)
LiveHappens Jan 14, 2023
76a1a1b
#58 - Autocomplete friend gift (#111)
oobjectt Jan 14, 2023
4448806
Bump renderer version
billsonnn Jan 18, 2023
4361ab7
Fix navigator icons (#137)
Snaiker Jan 27, 2023
f05ef52
Feature - Mystery trophy (#135)
oobjectt Jan 27, 2023
527d7f8
fix #132
s074 Jan 31, 2023
73d1e8f
fix iswearingeffect condition
s074 Jan 31, 2023
a21e622
only update playlist editor when open
s074 Feb 1, 2023
3147652
Wired changes
billsonnn Apr 29, 2023
7d4618b
Fix locale in wardrobe
billsonnn Apr 29, 2023
5e7f72f
Update some stuff to use async
billsonnn Jul 12, 2023
69c7ce4
Update event system & startup
billsonnn Jul 19, 2023
2c5c6cd
Remove resolution option
billsonnn Jul 20, 2023
12afa74
fix floorplan
s074 Jul 20, 2023
bccd239
forgot this
s074 Jul 20, 2023
4d1bb08
redo floorplan editor: now a LOT more performant
s074 Jul 20, 2023
ed1de1c
Changes
billsonnn Jul 20, 2023
f7ad419
Update dependencies
billsonnn Jul 20, 2023
7841e16
Version 2.2.0
billsonnn Jul 20, 2023
38f97b2
Update lock file
billsonnn Jul 21, 2023
96851c9
Merge branch 'async-booting' into dev
billsonnn Jul 21, 2023
aa4dfee
prevent scrolling canvas on mobile
s074 Jul 21, 2023
7e2bcd1
Merge branch 'async-booting' of https://github.com/billsonnn/nitro-re…
s074 Jul 21, 2023
1c043b3
prevent scrolling canvas on mobile (#156)
s074 Jul 21, 2023
dfb7506
set canvas background color
s074 Jul 21, 2023
a032e92
set canvas background (#157)
s074 Jul 21, 2023
2ec8cc5
flooreditor canvas take full space on large screen
s074 Jul 21, 2023
de84994
Merge branch 'async-booting' into dev
s074 Jul 21, 2023
22c51a7
Fix friends sorting (#158)
orsonclark Jul 23, 2023
2c5a645
Fix type
billsonnn Jul 23, 2023
b3cce54
Enhancement - Relationship Icon
Cold-FR Aug 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries
# You can see what browsers were selected by your queries by running:
# npx browserslist

last 1 Chrome version
last 1 Firefox version
last 1 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
16 changes: 0 additions & 16 deletions .editorconfig

This file was deleted.

110 changes: 110 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"pragma": "React",
"version": "18.0.0"
}
},
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended"
],
"plugins": [
"@typescript-eslint",
"react"
],
"rules": {
"linebreak-style": [
"off"
],
"quotes": [
"error",
"single"
],
"@typescript-eslint/indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"array-bracket-spacing": [
"error",
"always"
],
"brace-style": [
"error",
"allman"
],
"template-curly-spacing": [
"error",
"always"
],
"no-multi-spaces": [
"error"
],
"@typescript-eslint/object-curly-spacing": [
"error",
"always",
{
"arraysInObjects": true,
"objectsInObjects": false
}
],
"@typescript-eslint/ban-types": [
"error",
{
"types": {
"String": true,
"Boolean": true,
"Number": true,
"Symbol": true,
"{}": false,
"Object": false,
"object": false,
"Function": false
},
"extendDefaults": true
}
],
"no-switch-case-fall-through": [
"off"
],
"jsx-quotes": [
"error"
],
"react/prop-types": [
"off"
],
"react/jsx-curly-spacing": [
"error",
{
"when": "always",
"children": true
}
],
"react/jsx-equals-spacing": [
"error"
],
"react/jsx-newline": [
"error",
{
"prevent": true
}
]
}
}
29 changes: 5 additions & 24 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,50 +1,31 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/out-tsc
# Only exists if Bazel was run
/bazel-out

# dependencies
/node_modules

# profiling files
chrome-profiler-events*.json
speed-measure-plugin*.json

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings
*.log
.git

# System Files
.DS_Store
Thumbs.db

# Nitro
/build
*.zip
.env
public/renderer-config*
public/ui-config*
29 changes: 29 additions & 0 deletions .gitlab-ci.yml-disabled
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
image: node:16.13

stages:
- install-dependencies
- build

Install Dependencies:
stage: install-dependencies
script:
- yarn install
cache:
key: ${CI_COMMIT_BRANCH}
paths:
- node_modules

Build Nitro:
stage: build
script:
- cp public/renderer-config.json.example public/renderer-config.json
- cp public/ui-config.json.example public/ui-config.json
- yarn build:prod
cache:
key: ${CI_COMMIT_BRANCH}
paths:
- node_modules
artifacts:
expire_in: 2 weeks
paths:
- build/*
26 changes: 21 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,29 @@
"typescript.preferences.quoteStyle": "single",
"typescript.format.placeOpenBraceOnNewLineForControlBlocks": true,
"typescript.format.placeOpenBraceOnNewLineForFunctions": true,
"editor.wordWrap": "on",
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.organizeImports": true,
"source.fixAll.eslint": true,
"source.fixAll.sortJSON": false,
"source.organizeImports": true
},
"emmet.showExpandedAbbreviation": "never",
"git.ignoreLimitWarning": true,
"editor.formatOnSave": false,
"git.ignoreLimitWarning": true,
"files.eol": "\n",
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true
"files.trimFinalNewlines": true,
"emmet.showExpandedAbbreviation": "never",
"eslint.format.enable": true,
"eslint.validate": [
"javascript",
"typescript"
],
"eslint.workingDirectories": [
{
"pattern": "./src"
}
],
"javascript.format.enable": false,
"thunder-client.saveToWorkspace": false,
"thunder-client.workspaceRelativePath": "."
}
70 changes: 37 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,50 @@
# Getting Started with Create React App
# Nitro React v2.1

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## Prerequisites

## Available Scripts
- [Git](https://git-scm.com/)
- [NodeJS](https://nodejs.org/) >= 18
- If using NodeJS < 18 remove `--openssl-legacy-provider` from the package.json scripts
- [Yarn](https://yarnpkg.com/) `npm i yarn -g`

In the project directory, you can run:
## Installation

### `npm start`
- First you should open terminal and navigate to the folder where you want to clone Nitro
- Clone Nitro
- `git clone https://git.krews.org/nitro/nitro-react.git`
- Install the dependencies
- `yarn install`
- This may take some time, please be patient
- Rename a few files
- Rename `public/renderer-config.json.example` to `public/renderer-config.json`
- Rename `public/ui-config.json.example` to `public/ui-config.json`
- Set your links
- Open `public/renderer-config.json`
- Update `socket.url, asset.url, image.library.url, & hof.furni.url`
- Open `public/ui-config.json`
- Update `camera.url, thumbnails.url, url.prefix, habbopages.url`
- You can override any variable by passing it to `NitroConfig` in the index.html

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
## Usage

The page will reload if you make edits.\
You will also see any lint errors in the console.
- To use Nitro you need `.nitro` assets generated, see [nitro-converter](https://git.krews.org/nitro/nitro-converter) for instructions
- See [Morningstar Websockets](https://git.krews.org/nitro/ms-websockets) for instructions on configuring websockets on your server

### `npm test`
### Development

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
Run Nitro in development mode when you are editing the files, this way you can see the changes in your browser instantly

### `npm run build`
```
yarn start
```

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.
### Production

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!
To build a production version of Nitro just run the following command

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
```
yarn build:prod
```

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).
- A `dist` folder will be generated, these are the files that must be uploaded to your webserver
- Consult your CMS documentation for compatibility with Nitro and how to add the production files
35 changes: 35 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" crossorigin="use-credentials" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#000000">
<meta name="apple-mobile-web-app-title" content="Nitro">
<meta name="application-name" content="Nitro">
<meta name="msapplication-TileColor" content="#000000">
<meta name="theme-color" content="#000000" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<base href="./">
<title>Nitro</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root" class="w-100 h-100"></div>
<script>
const NitroConfig = {
"config.urls": [ '/renderer-config.json', '/ui-config.json' ],
"sso.ticket": (new URLSearchParams(window.location.search).get('sso') || null),
"forward.type": (new URLSearchParams(window.location.search).get('room') ? 2 : -1),
"forward.id": (new URLSearchParams(window.location.search).get('room') || 0),
"friend.id": (new URLSearchParams(window.location.search).get('friend') || 0),
};
</script>
<script type="module" src="./src/index.tsx"></script>
</body>
</html>
Loading