Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lodestone 0.4.2 #169

Merged
merged 105 commits into from
Feb 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
36dcb4d
removed overlap of text and icon in input box
NicholasLin718 Feb 2, 2023
f1e5693
computed padding right using style
NicholasLin718 Feb 3, 2023
22bcb25
modified input-base into smaller reusable tailwind class components
NicholasLin718 Feb 3, 2023
c8cccf8
cleaned up styling
NicholasLin718 Feb 3, 2023
b25133a
Refactor to new Error type
3Nya3 Feb 4, 2023
aece660
Fixed linting
3Nya3 Feb 4, 2023
bdd9296
Refactored .detail
3Nya3 Feb 4, 2023
9786bee
Removed InnerError.ts due to refactoring
3Nya3 Feb 4, 2023
16405ed
Merge pull request #129 from 3Nya3/error_refactor
3Nya3 Feb 4, 2023
7e672b7
wip
Ynng Feb 4, 2023
5ccad1c
updated core
Ynng Feb 4, 2023
a6b7369
update to reflect core API change
CheatCod Feb 4, 2023
6b4ba72
Revert "update to reflect core API change"
Ynng Feb 5, 2023
67904b8
reflected core api change - Peter
Ynng Feb 5, 2023
c13d69b
WIP instance pills
Ynng Jan 8, 2023
2953fbd
Reverted to resizable left nav design
Ynng Jan 9, 2023
3b07fc3
minor
Ynng Jan 9, 2023
352717c
minor
Ynng Jan 9, 2023
262dbf3
Merge pull request #128 from Lodestone-Team/inputfield
NicholasLin718 Feb 7, 2023
23bd775
cargo lock fix
Arcslogger Feb 9, 2023
00c94fb
Merge branch '0.4.2' into new-variable-width-design
Arcslogger Feb 9, 2023
6445aa1
Add tooltip to GameIcon
ViridianCitrus Feb 10, 2023
1edf1e9
moved user login and core setting icon to left navbar
NicholasLin718 Feb 10, 2023
7fd5306
Merge pull request #140 from Lodestone-Team/111-add-tooltip-to-gameic…
ViridianCitrus Feb 11, 2023
a33a4a3
added fonts from fontshare
Ynng Feb 11, 2023
e321ab5
updated nextjs version from 13.0.0 -> 13.1.6
Ynng Feb 11, 2023
35a9589
applied fonts
Ynng Feb 11, 2023
cd2a057
removed fontshare link
Ynng Feb 11, 2023
8bf5416
Merge pull request #142 from Lodestone-Team/72-local-fonts
Ynng Feb 11, 2023
7b221f8
fixed truncating of username
NicholasLin718 Feb 11, 2023
21a56d4
new styling for new instance button
NicholasLin718 Feb 11, 2023
10f0590
cleaned up instance select button
NicholasLin718 Feb 11, 2023
b0e3969
add a none intention for button
NicholasLin718 Feb 11, 2023
a0e6fd2
add restart button to InstanceCard
seliayeu Feb 12, 2023
fb56a45
implemented IconProps and a renderIcon function in ToastContainer
kevinzhang03 Feb 12, 2023
fbd6c38
Merge branch '0.4.2' into 0.4.1-toast-type
kevinzhang03 Feb 12, 2023
c5da15f
Merge pull request #150 from Lodestone-Team/0.4.1-toast-type
kevinzhang03 Feb 12, 2023
2fd0364
WIP
Ynng Feb 12, 2023
0a5d424
Finished separating file list
Ynng Feb 12, 2023
0dbd175
separated file/folder creation modal to separate components
Ynng Feb 12, 2023
af75bd1
minor restructuring
Ynng Feb 12, 2023
b5c6a82
made breadcrumbs a separate component
Ynng Feb 12, 2023
ea6477d
removed unused imports
Ynng Feb 12, 2023
52a44c8
moved file related api hooks outside FileViewer.tsx
Ynng Feb 12, 2023
2cd43e7
separated file editor (monaco) to a component
Ynng Feb 13, 2023
297ddf2
fixed wrong tailwind class
Ynng Feb 13, 2023
19a464b
Merge pull request #151 from Lodestone-Team/file-viewer-refactor
Ynng Feb 13, 2023
8276632
minor
Ynng Feb 13, 2023
c935eb1
Moved tabs and instance info to left navbar, added additional routing…
NicholasLin718 Feb 14, 2023
fac0f51
resolved early return error
NicholasLin718 Feb 14, 2023
5f991b4
removed logs
NicholasLin718 Feb 14, 2023
8a4fafc
added keyboard arrow navigation
NicholasLin718 Feb 15, 2023
7ff8199
made left navbar resizable and synced with settings navbar
NicholasLin718 Feb 15, 2023
f2f53e9
styled instance tab titles
NicholasLin718 Feb 16, 2023
b7d5ef5
fixed layout and focus button bugs
NicholasLin718 Feb 16, 2023
cf028b0
overflow clip scroll fix
NicholasLin718 Feb 16, 2023
abd636d
commented out old dashboard route
NicholasLin718 Feb 17, 2023
c0a254f
fix typo
seliayeu Feb 17, 2023
52d29bd
Merge pull request #148 from Lodestone-Team/restart-button
seliayeu Feb 17, 2023
50a02b7
added path history / load spinner and fixed icon button accessibility
NicholasLin718 Feb 17, 2023
725dbd6
added horizontal margins to prevent overlapping of the navbar
NicholasLin718 Feb 17, 2023
b6e13b8
Merge branch '0.4.2' of https://github.com/Lodestone-Team/dashboard i…
NicholasLin718 Feb 17, 2023
80c464e
fixed a bug where file editor shows up as light theme
Ynng Feb 17, 2023
d3b4654
renamed file
NicholasLin718 Feb 17, 2023
deabb61
added dropdown for instance state
NicholasLin718 Feb 17, 2023
fa11ec6
minor styling fix
NicholasLin718 Feb 18, 2023
da48977
select-none on left bar and top bar
NicholasLin718 Feb 18, 2023
05f692d
modified scrollbar + navbar y-padding
NicholasLin718 Feb 18, 2023
20d4fcb
fix: Learn more consistency on login form
HananAlsawy Feb 18, 2023
1efc5aa
Merge pull request #156 from HananAlsawy/fix-learn-more-consistency-o…
Ynng Feb 18, 2023
5cba268
added consistent dropdown functionality for selected instance state
NicholasLin718 Feb 18, 2023
6c13030
Merge pull request #152 from Lodestone-Team/left-nav
NicholasLin718 Feb 18, 2023
b07d711
updated cargo
Ynng Feb 18, 2023
40f6b43
bumped versions
Ynng Feb 18, 2023
03d3516
fixed minecraft flavour types
NicholasLin718 Feb 19, 2023
c78c60b
new sort function for minecraft flavour objects
NicholasLin718 Feb 19, 2023
c80abe2
updated versions of things
Ynng Feb 19, 2023
2f37937
update binding for flavour
CheatCod Feb 19, 2023
6ed6496
tolowercase
CheatCod Feb 19, 2023
3fbc588
minor
CheatCod Feb 19, 2023
bd351fe
match backend API
CheatCod Feb 19, 2023
c3d050e
Fixed Button's behaviour when loading
Ynng Feb 19, 2023
42e9fda
wip
Arcslogger Feb 19, 2023
a9b83b5
reverted "tag" in backend serde for minecraft flavour
Ynng Feb 20, 2023
1a02aa9
re-organized files
Ynng Feb 20, 2023
665e245
Finished TODO
Ynng Feb 20, 2023
3fc5d75
applied new instance loading pill in list
Ynng Feb 20, 2023
3d205bf
Merge pull request #162 from Lodestone-Team/fix-flavour-type-bind
Ynng Feb 20, 2023
27e8d89
cleanup
Arcslogger Feb 20, 2023
4611c12
added forge and paper icons
Arcslogger Feb 20, 2023
b563528
hotfix for home until full design
Arcslogger Feb 20, 2023
2d01e69
tweaks + cleanup
Arcslogger Feb 20, 2023
76584f6
"new instance" doesn't look disabled
Arcslogger Feb 20, 2023
0fa1d01
Merge pull request #164 from Lodestone-Team/newLoadingCard
Arcslogger Feb 20, 2023
67d6d33
added spinner component to give time for user info to load
NicholasLin718 Feb 20, 2023
345cd4c
temporary: changed console to default tab
NicholasLin718 Feb 20, 2023
fd0fe31
made home the same width as an instance's overview page
NicholasLin718 Feb 20, 2023
c1e2cf4
fixed truncating
NicholasLin718 Feb 20, 2023
9b6d19b
Fixed overflowing issue in user menu button
Ynng Feb 21, 2023
1697c9a
remove unneeded tailwind class
NicholasLin718 Feb 21, 2023
944db7f
Merge pull request #166 from Lodestone-Team/homeHotfix
Ynng Feb 21, 2023
1c90840
Merge pull request #167 from Lodestone-Team/leftnavTweaks
Ynng Feb 21, 2023
50cd460
removed disclaimer from readme
Ynng Feb 21, 2023
f4a2d3b
cargo updated
Ynng Feb 21, 2023
61b89bc
new font loading
Ynng Feb 21, 2023
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
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[![Lodestone Screen Shot](/public/assets/readmeRender.png)](https://www.lodestone.cc/)
*Note: design above will launch at a later date.*

[![Contributors][contributors-shield]][contributors-url]
[![Issues][issues-shield]][issues-url]
Expand Down
1,326 changes: 723 additions & 603 deletions package-lock.json

Large diffs are not rendered by default.

27 changes: 14 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lodestone",
"version": "0.4.1",
"version": "0.4.2",
"private": true,
"scripts": {
"dev": "next dev -p 3001",
Expand All @@ -21,7 +21,7 @@
"@headlessui/react": "^1.7.0",
"@headlessui/tailwindcss": "^0.1.2",
"@monaco-editor/react": "^4.4.6",
"@next/font": "^13.0.0",
"@next/font": "^13.1.6",
"@tanstack/react-query": "^4.13.5",
"@tanstack/react-virtual": "^3.0.0-beta.32",
"@tauri-apps/api": "^1.2.0",
Expand All @@ -37,13 +37,14 @@
"minecraft-motd-util": "^1.1.12",
"monaco-editor": "^0.34.0",
"msw": "^0.47.4",
"msw-storybook-addon": "^1.6.3",
"next": "^13.0.0",
"msw-storybook-addon": "^1.7.0",
"next": "^13.1.6",
"npm": "^8.19.2",
"patch-package": "^6.4.7",
"rc-tooltip": "^5.2.2",
"react": "^18.2.0",
"react-chartjs-2": "^4.3.1",
"react-circular-progressbar": "^2.1.0",
"react-device-detect": "^2.2.2",
"react-dom": "^18.2.0",
"react-draggable": "^4.4.5",
Expand All @@ -53,22 +54,22 @@
"react-spinners": "^0.13.4",
"react-toastify": "^9.1.1",
"semver": "^7.3.8",
"storybook-addon-next-router": "^4.0.0",
"storybook-addon-next-router": "^4.0.2",
"tailwind-merge": "^1.8.1",
"usehooks-ts": "^2.6.0",
"variant": "^3.0.0-dev.24",
"yup": "^0.32.11"
},
"devDependencies": {
"@babel/core": "^7.18.10",
"@storybook/addon-actions": "^6.5.10",
"@storybook/addon-essentials": "^6.5.10",
"@storybook/addon-interactions": "^6.5.10",
"@storybook/addon-links": "^6.5.10",
"@storybook/addon-actions": "^6.5.16",
"@storybook/addon-essentials": "^6.5.16",
"@storybook/addon-interactions": "^6.5.16",
"@storybook/addon-links": "^6.5.16",
"@storybook/addon-postcss": "^2.0.0",
"@storybook/builder-webpack5": "^6.5.10",
"@storybook/manager-webpack5": "^6.5.10",
"@storybook/react": "^6.5.10",
"@storybook/builder-webpack5": "^6.5.16",
"@storybook/manager-webpack5": "^6.5.16",
"@storybook/react": "^6.5.16",
"@storybook/testing-library": "^0.0.13",
"@svgr/webpack": "^6.5.1",
"@tailwindcss/container-queries": "^0.1.0",
Expand All @@ -86,7 +87,7 @@
"eslint": "^8.22.0",
"eslint-config-next": "^13.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-storybook": "^0.6.4",
"eslint-plugin-storybook": "^0.6.10",
"eslint-plugin-tailwindcss": "^3.8.0",
"postcss": "^8.4.16",
"prettier": "^2.7.1",
Expand Down
70 changes: 44 additions & 26 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ import axios from 'axios';
import NoSSR from 'react-no-ssr';
import { BrowserRouter } from 'react-router-dom';
import { BrowserLocationContextProvider } from 'data/BrowserLocationContext';
import { toast, ToastContainer, Zoom } from 'react-toastify';
import { ToastContainer, Zoom, IconProps } from 'react-toastify';
import LoadingStatusIcon from 'components/Atoms/LoadingStatusIcon';
import ReactGA from 'react-ga4';
import localFont from '@next/font/local';

config.autoAddCss = false;
axios.defaults.timeout = 5000;
Expand All @@ -25,33 +26,50 @@ const contextClass = {
success: '!bg-green',
};


function MyApp({ Component, pageProps }: AppProps) {
const renderIcon = (props: IconProps) => {
// Cannot assign 'Success' to EventLevel, so I guess there won't be a success toast
switch (props.type) {
case 'error':
return <LoadingStatusIcon level={'Error'} bright={true} />;
case 'warning':
return <LoadingStatusIcon level={'Warning'} bright={true} />;
default:
return <LoadingStatusIcon level={'Info'} bright={true} />;
}
}

return (
<NoSSR>
<ToastContainer
toastClassName="!bg-gray-850 cursor-pointer"
bodyClassName={() =>
'text-medium font-medium tracking-medium font-gray-300 p-1 flex flex-row'
}
progressClassName={(context) => {
const type = context?.type || 'info';
return contextClass[type] + ' relative ' + context?.defaultClassName;
}}
icon={<LoadingStatusIcon level={'Info'} bright={true} />}
position={'bottom-right'}
closeButton={false}
pauseOnFocusLoss={false}
draggable={false}
pauseOnHover
theme="dark"
transition={Zoom}
/>
<BrowserRouter>
<BrowserLocationContextProvider>
<Component {...pageProps} />
</BrowserLocationContextProvider>
</BrowserRouter>
</NoSSR>
<main>
<NoSSR>
<ToastContainer
toastClassName="!bg-gray-850 cursor-pointer"
bodyClassName={() =>
'text-medium font-medium tracking-medium font-gray-300 p-1 flex flex-row'
}
progressClassName={(context) => {
const type = context?.type || 'info';
return (
contextClass[type] + ' relative ' + context?.defaultClassName
);
}}
icon={renderIcon}
position={'bottom-right'}
closeButton={false}
pauseOnFocusLoss={false}
draggable={false}
pauseOnHover
theme="dark"
transition={Zoom}
/>
<BrowserRouter>
<BrowserLocationContextProvider>
<Component {...pageProps} />
</BrowserLocationContextProvider>
</BrowserRouter>
</NoSSR>
</main>
);
}

Expand Down
4 changes: 0 additions & 4 deletions pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ class MyDocument extends Document {
return (
<Html>
<Head>
<link
href="https://api.fontshare.com/v2/css?f[]=chillax@1&f[]=satoshi@1,2&f[]=jet-brains-mono@1,2&f[]=clash-grotesk@1&display=swap"
rel="stylesheet"
/>
</Head>

<body>
Expand Down
21 changes: 19 additions & 2 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import { InstanceViewLayout } from 'components/DashboardLayout/InstanceViewLayou
import { SettingsLayout } from 'components/DashboardLayout/SettingsLayout';
import { toast } from 'react-toastify';
import RequireSetup from 'utils/router/RequireSetup';
import InstanceTabs from 'pages/InstanceTabs/InstanceTabs';

const queryClient = new QueryClient({
defaultOptions: {
Expand All @@ -52,6 +53,15 @@ const queryClient = new QueryClient({
},
});

const InstanceTabList = [
'overview',
'settings',
'console',
'files',
'tasks',
'logs',
];

export default function App() {
const { location, setSearchParam } = useContext(BrowserLocationContext);

Expand Down Expand Up @@ -226,7 +236,7 @@ export default function App() {
>
<Routes>
<Route element={<LoginLayout />}>
<Route path="/first_setup" element={<FirstTime />} />
<Route path="/first_setup" element={<FirstTime />} />
<Route
path="/login/core/select"
element={
Expand Down Expand Up @@ -279,7 +289,14 @@ export default function App() {
}
>
<Route element={<InstanceViewLayout />}>
<Route path="/dashboard" element={<Dashboard />} />
{/* <Route path="/dashboard" element={<Dashboard />} /> */}
{InstanceTabList.map((path, i) => (
<Route
path={`/dashboard/${path}`}
element={<InstanceTabs />}
key={i}
/>
))}
<Route path="/" element={<Home />} />
</Route>
<Route element={<SettingsLayout />}>
Expand Down
Binary file added public/assets/minecraft-forge.png
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 public/assets/minecraft-paper.png
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 public/fonts/Chillax-Variable.woff2
Binary file not shown.
Binary file added public/fonts/ClashGrotesk-Variable.woff2
Binary file not shown.
Binary file added public/fonts/JetBrainsMono-Variable.woff2
Binary file not shown.
Binary file added public/fonts/JetBrainsMono-VariableItalic.woff2
Binary file not shown.
Binary file removed public/fonts/Minecraftia-Regular.ttf
Binary file not shown.
Binary file added public/fonts/Satoshi-Variable.woff2
Binary file not shown.
Binary file added public/fonts/Satoshi-VariableItalic.woff2
Binary file not shown.
Loading