Skip to content

Commit

Permalink
Merge branch '0.4.1' of https://github.com/Lodestone-Team/dashboard i…
Browse files Browse the repository at this point in the history
…nto RCONsetting
  • Loading branch information
NicholasLin718 committed Jan 19, 2023
2 parents e96d227 + a6e380f commit 0cddd25
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import ReactGA from 'react-ga4';
config.autoAddCss = false;
axios.defaults.timeout = 5000;
const TRACKING_ID = 'G-LZQ3VZ6N26';
ReactGA.initialize(TRACKING_ID);
if (process.env.NODE_ENV === 'production') ReactGA.initialize(TRACKING_ID);

const contextClass = {
default: '!bg-gray-500',
Expand Down
1 change: 0 additions & 1 deletion src/components/Atoms/Form/SelectField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export default function SelectField<T extends string | object>(
} else {
output = JSON.stringify(option);
}
console.log('optionLabel', option, output);
return output;
},
...rest
Expand Down
1 change: 0 additions & 1 deletion src/components/Atoms/MultiSelectGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export default function MultiSelectGrid<T extends string | object>(
} else {
output = JSON.stringify(option);
}
console.log('optionLabel', option, output);
return output;
},
} = props;
Expand Down
2 changes: 2 additions & 0 deletions src/components/DashboardLayout/TopNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ export default function TopNav() {
}}
align="end"
disabled={disabled}
variant='text'
/>
)}
</Menu.Item>
Expand All @@ -162,6 +163,7 @@ export default function TopNav() {
setSearchParam('user', undefined);
setPathname('/login/core/select');
}}
variant='text'
/>
)}
</Menu.Item>
Expand Down
1 change: 1 addition & 0 deletions src/components/Minecraft/MinecraftSettingCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ export default function MinecraftSettingCard() {
<div className="relative flex w-5/12 shrink-0 flex-row items-center justify-end gap-4">
<Button
label="Delete"
intention="danger"
disabled={!can_delete_instance}
onClick={() => {
setShowDeleteDialog(true);
Expand Down
1 change: 1 addition & 0 deletions src/components/Settings/CoreSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ export const CoreSettings = () => {
<div className="relative flex w-5/12 shrink-0 flex-row items-center justify-end gap-4">
<Button
label="Open Port"
intention="danger"
disabled={!can_change_core_settings}
onClick={() => {
setShowOpenPortDialog(true);
Expand Down
1 change: 1 addition & 0 deletions src/components/UserBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ export default function UserBox({
label="Delete User"
iconRight={faTrashCan}
variant="text"
intention="danger"
align="end"
disabled={disabled || isSelf}
onClick={() => setShowDeleteUser(true)}
Expand Down
1 change: 1 addition & 0 deletions src/pages/login/CoreConfigNew.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ const CoreConfigNew = () => {
<div className="flex w-full flex-row justify-end gap-4">
<Button
type="submit"
intention="primary"
label="Continue"
iconRight={faArrowRight}
loading={isSubmitting}
Expand Down
1 change: 1 addition & 0 deletions src/pages/login/CoreConnect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ const CoreConnect = () => {
/>
<Button
type="submit"
intention="primary"
label="Add and Continue"
iconRight={faArrowRight}
loading={isSubmitting} //TODO: fix button size changing when loading
Expand Down
3 changes: 3 additions & 0 deletions src/pages/login/CoreSelectExisting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ const CoreSelectExisting = () => {
OR
</p>
<Button
type="button"
icon={faPlus}
label="Connect a new core"
className="flex-1"
Expand All @@ -120,6 +121,7 @@ const CoreSelectExisting = () => {
</div>
<div className="flex w-full flex-row justify-end gap-4">
<Button
type="button"
iconRight={faDownload}
label="Download Lodestone Core"
onClick={() => {
Expand All @@ -131,6 +133,7 @@ const CoreSelectExisting = () => {
/>
<Button
type="submit"
intention="primary"
label="Continue"
iconRight={faArrowRight}
loading={isSubmitting} //TODO: fix button size changing when loading
Expand Down
1 change: 1 addition & 0 deletions src/pages/login/CoreSetupNew.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ const CoreSetupNew = () => {
/> */}
<Button
type="submit"
intention="primary"
label="Submit"
iconRight={faArrowRight}
loading={isSubmitting}
Expand Down
1 change: 1 addition & 0 deletions src/pages/login/UserLogin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ const UserLogin = () => {
</div>
<Button
type="submit"
intention="primary"
iconRight={faArrowRight}
label="Sign in"
loading={isSubmitting}
Expand Down
1 change: 1 addition & 0 deletions src/pages/login/UserSelectExisting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ const UserSelectExisting = () => {
</p>
<Button
icon={token ? faArrowRightArrowLeft : faRightFromBracket}
intention={token ? 'info' : 'primary'}
label={token ? 'Switch user' : 'Sign in'}
className="flex-1"
onClick={() => setPathname('/login/user')}
Expand Down

0 comments on commit 0cddd25

Please sign in to comment.