#WIP: resources page

1 messages · Page 1 of 1 (latest)

ornate nymph
#

@rigid dragon

rigid dragon
#

Here's the current issue:

#

I've got the counter of the promise that also exceeds 100 ticks so not sure what's going on, path to fxserver and monitor folder are good also

lunar apexBOT
ornate nymph
#

type node --version

#

let me see

rigid dragon
#

v20.17.0

unreal cosmos
#

I am gonna blame the million spaces in the path

ornate nymph
#

How are you running it?

rigid dragon
#

inside core/ with npm run dev

ornate nymph
#

can you show me what appears when you type that?

rigid dragon
#

Stupid, forgot to mention the readable stream error from the discord js module.

ornate nymph
#

scroll up

#

i want to see the npm run dev

rigid dragon
#

I don't think it's the spaces in the path, but I can give it a shot in a new directory

ornate nymph
#

this is sus

#

type cd ..

#

then git status

rigid dragon
#

Did an npm audit fix, could that of been it ? Just saw the uncommited changes to the package files ?

#

THe main builder was just my line for the path for fxserver

ornate nymph
#

which fxserver build are you based on?

rigid dragon
#

7290

#

At least I normally reverted back to it, let me check

ornate nymph
#

type

git remote get-url origin
#

i think your branch might be a bit too old

#

i recommend just cloning the txAdmin repo and reapplying your resources.ejs

rigid dragon
#

That's just returning the url of my fork
Yeah, I'll give it a shot

#

I'll give it a shot tomorrow, running on fumes at the moment

ornate nymph
#

alright

#

have a good night

rigid dragon
#

I was only up to date on the main branch 🫠

ornate nymph
#

RIP

rigid dragon
#

Well actually no, 😂

ornate nymph
#

still same error?

#

make sure to npm install again

rigid dragon
#

Yeah, not the time to try again

rigid dragon
#

If I remember properly it was the table class coupled with the table-outline that where messing with it.
But you can't just remove table or try to override with style for the border radius. Iirc was a while back

unreal cosmos
#

What's wrong tho? When I create a new build it just works out of the box hmm

rigid dragon
unreal cosmos
rigid dragon
#

Let's say that One evening I wanted to mess around and try stuff out.
I started using pnpm for some reason, got tired and interrupted the download to shut off the PC saying I'll reinstall tomorrow, next day I use npm.
And I actually was up to date on the develop branch 😂

#

Now it all works 😂

#

Sorry about last night 😂

unreal cosmos
#

Nice

rigid dragon
#

Now the fun bit, I still can't find an adequate solution to put some border radius on the tabs, because the table class seems to just put it's stiff right over it again, it's there without it being there

ornate nymph
ornate nymph
#

or maybe just do whatever

#

I am not particularly caring of the maintainability of this particular code

#

eventually it will be migrated to react

unreal cosmos
#

What are you trying to do anyways @rigid dragon ?

ornate nymph
#

make the resources page not suck for anyone with over 50 resources

#

i have big ideas on how to better do it on react

#

but not priority clown_sad

#

I want to get resource cpu/memory usage before i remake this page, though

#

and instead of showing all the resources, on the left it will show just the folder structure with buttons on the right to stop/start the resources in the cartegory

#

then in the middle of the page it will just show the resources from the folder you have selected

#

and if you don't select any, it will show "recently added resources"

#

and for each resource there will be option to auto restart them on changes (for dev purposes), or to see if they are outdated, button to update them, button to configure them, button to add/remove from auto start

#

...

#

it will be cool af

unreal cosmos
#

Will it get merged in the legacy page at all

#

Like do you want any changes to that

rigid dragon
#

How would you check if they're outdated ? Using the repository key in the manifests ?

rigid dragon
# unreal cosmos Why tho

Because at one point It started annoying me to go look for specific resources on my dev server, so I changed the UI

ornate nymph
#

and i've a feeling it will take over 6 months before I even start drawing the new resources page UI

ornate nymph
rigid dragon
#

Big hopes

#

Maybe two methods ?

  • if the repository url in the manifest is git use the latest release tag (even if there are some that don't use it)
  • if the url is anything else it should simply return the latest version tag ?
ornate nymph
#

Many alternatives

#

need to talk to Cfx about this too

ornate nymph
#

@rigid dragon I guess you were not the only one

#

ffs

#

idk how to fix this crap

#

super, it doesn't work on node 16

rigid dragon
ornate nymph
#

No, just discord.js with its annoying dependency tree

rigid dragon
#

Fun

ornate nymph
#

@rigid dragon Did you manage to fix the table corners?

rigid dragon
#

Still stuck on it, can't seem to force it on top.
Maybe trying to recreate the table styling could solve it but that seems like a lot of hassle.

rigid dragon
ornate nymph
#

I feel like this PR bought be some more time before I rewrite the entire resources page in react.

#

this is the plan

#

the first point is the most important, state changes will be pushed to the UI instead of you being forced to reload the page