nlthijs48 / gocraftwebsite Goto Github PK
View Code? Open in Web Editor NEWWebsite of the Go-Craft Minecraft server
Website of the Go-Craft Minecraft server
When selecting a tab the World maps
item is not highlighted anymore. Should also add a redirect from /maps
to /maps/<first server>
to get a correct url representation.
Render categories and items using data from the API:
/gui
: get available items and their categories/recentdonor
: recent donations/pending
: commands that need to be executed/expiry
: command that need to be executed to expire ranks/executed/<number>
: mark command as done(emailed MinecraftMarket to ask for proper documentation, but the above is already enough for now)
forever
and other required packages)rsync
for deployment?
git
to make rolling back to a previous version easier?Add some components for easily setting up flexbox containers, and also one to flex. Things to take into account:
min-width: 0
for flexing containers with text to force them to shrinkmax-width: 100%
and max-height: 100%
probablyUse Discord widget api to get channels and online players, display on a page or maybe a sidebar.
Also show in the menu?
URL: https://discordapp.com/api/guilds/172057458339086336/widget.json
React transition group api
Examples from material-ui (Fade class seems to act weird though, does Modal work?)
functions.php
in WordPress template (and move the template to the repo)Save (part of) the data from the Redux store into localstorage and restore it on the next visit (based on https://egghead.io/lessons/javascript-redux-persisting-the-state-to-the-local-storage). This would make the second visit show the website very quickly.
Some data does not need to be stored, like the fetching state and drawer state, but news items, servers, pages and menu information should get stored. It should still fetch new data when starting up, but while that is happening it can show the restored data.
Show it on the server detail page, also let it work with previous months and further rankings (top 20, top 30, ...).
Everything has been setup for it, but it looks like the openssl version of Ubuntu 14 does not allow browsers like Chrome to use it. Could try testing the dist-upgrade from 14 to 16, but it is quite scary to run that on the Go-Craft VM.
Include:
Link to player page from:
Update the certificate, command can be found in the Google Drive document of the server.
Could get these from the server using the websocket, or move the rules to the WordPress interface and let the server get them from WordPress instead?
general
or server-specific
server-specific
is selectedCannot be tested currently, so test this after release
All type parameters of connect()
can be skipped if the mapStateToProps
and mapDispatchToProps
functions are inlined, and the component is also inlined. This has the following positive effects:
mapStateToProps
, it is completely inferred if the state
argument has the AppState
type declared.mapDispatchToProps
, also completely inferred if the state
argument has the AppState
type declared.connect()()
will let TypeScript infer the props perfectly, meaning and interface like AllProps
or merging the state, dispatch, router and own props is not necessary anymore.function
keyword and the name of the function.Might need to define an alternative function for connect with only a type argument for the component props, because that is still not possible without specifying all type arguments. Another helper is probably necessary for withRouter().
This seems to break hot reloading, maybe there is something that can be done to fix it
Remember scroll position on the news page, restore it when coming back. Could be hard to get working if multiple pages of news items have been loaded previously (somehow store this page state as well?).
transform: translate3d(0,0,0);
and will-change: transform
to all scroll containers.requestAnimationFrame
for animating hero image (and throttle it to one per frame).The title of the page is not shown yet, probably want to put this in the header and move the logo to the left? Or add it in the content area as a subheader of some sort.
Also needs to go in the page title.
What the title says
Not a huge concern currently, but for could be nice to implement/test
index.html
to break the cacheindex.html
is always updated, except if there is no network.htaccess
Sub sites like multicraft.go-craft.com
are now located at /var/www/html/multicraft, but if the website would have a page multicraft
one of them will not work. Rewriting subdomains to for example SUB/multicraft
and moving sub sites into that folder should solve it.
Should be possible by making top bar and menu bar absolute or fixed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.