-
Notifications
You must be signed in to change notification settings - Fork 7
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
Remove version #1410
Remove version #1410
Changes from 8 commits
969f712
b7ef35f
4f19bf3
8926efb
2befe63
49d744b
a7b7890
0f31fd6
effde42
e22463e
d25dead
8ad9700
6cfbe66
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"name": "fractal-interface", | ||
"version": "0.1.8", | ||
"private": true, | ||
"dependencies": { | ||
"@apollo/client": "^3.7.10", | ||
|
@@ -53,13 +52,8 @@ | |
"scripts": { | ||
"lint": "next lint", | ||
"lint:fix": "next lint --fix", | ||
"set:env": "GENERATE_SOURCEMAP=false NEXT_PUBLIC_GIT_HASH=`git rev-parse HEAD`", | ||
"dev": "npm run set:env & next dev", | ||
"start": "npm run set:env & next start", | ||
"start:https": "npm run set:env & HTTPS=true next start", | ||
Comment on lines
-58
to
-59
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I removed these, and these two scripts are what I'm most unsure about. When/who is ever running these There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I do technically use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. heard! I will replace these. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mudrila are you sure about that? I see that netlify builds the site with but I don't see anywhere in the settings where the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mudrila as a test, I just removed the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok, adding the |
||
"start:windows": "set \"GENERATE_SOURCEMAP=false\" && for /F \"delims=\" %I in ('git rev-parse HEAD') do set \"NEXT_PUBLIC_GIT_HASH=%I\" && next start", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed this, none of us are on Windows. Edit: this comment only applies to line 60. |
||
"dev": "npm run graphql:build && NEXT_PUBLIC_GIT_HASH=`git rev-parse HEAD` next dev", | ||
"build": "npm run graphql:build && NEXT_PUBLIC_GIT_HASH=`git rev-parse HEAD` next build", | ||
"build:windows": "for /F \"delims=\" %I in ('git rev-parse HEAD') do set \"NEXT_PUBLIC_GIT_HASH=%I\" && next build", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed this, none of us are on Windows |
||
"graphql:build": "graphclient build", | ||
"graphql:dev-server": "graphclient serve-dev", | ||
"test": "vitest --dir=test", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import { Box, BoxProps, Divider, Flex, Link, Spacer, Text } from '@chakra-ui/react'; | ||
import { Trans, useTranslation } from 'react-i18next'; | ||
import packageJson from '../../../../package.json'; | ||
import { URL_DECENT } from '../../../constants/url'; | ||
import ExternalLink from '../../ui/links/ExternalLink'; | ||
|
||
|
@@ -42,23 +41,27 @@ export function AppFooter({ ...rest }: BoxProps) { | |
> | ||
{t('audit')} | ||
</ExternalLink> | ||
<Text | ||
color="grayscale.100" | ||
textStyle="text-sm-mono-bold" | ||
paddingStart="1rem" | ||
paddingEnd="1rem" | ||
> | ||
| | ||
</Text> | ||
<ExternalLink | ||
href={ | ||
'https://github.com/decent-dao/fractal-interface/commit/' + | ||
process.env.NEXT_PUBLIC_GIT_HASH | ||
} | ||
textStyle="text-sm-mono-bold" | ||
> | ||
v{packageJson.version} | ||
</ExternalLink> | ||
{process.env.NEXT_PUBLIC_GIT_HASH !== undefined && ( | ||
<> | ||
<Text | ||
color="grayscale.100" | ||
textStyle="text-sm-mono-bold" | ||
paddingStart="1rem" | ||
paddingEnd="1rem" | ||
> | ||
| | ||
</Text> | ||
<ExternalLink | ||
href={ | ||
'https://github.com/decent-dao/fractal-interface/commit/' + | ||
process.env.NEXT_PUBLIC_GIT_HASH | ||
} | ||
textStyle="text-sm-mono-bold" | ||
> | ||
{process.env.NEXT_PUBLIC_GIT_HASH.substring(0, 7)} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The only real change here is that I'm showing a the git shorthash as the version identifier. |
||
</ExternalLink> | ||
</> | ||
)} | ||
</Flex> | ||
</Box> | ||
); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed this script and inlined the important part (
NEXT_PUBLIC_GIT_HASH=git rev-parse HEAD
) into thedev
script. RemovedGENERATE_SOURCEMAP=false
because that was a CRA thing, not really relevant in our current project.