Skip to content

Commit

Permalink
chore: upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
dmoosocool committed Oct 12, 2023
1 parent 0be1aa9 commit f982714
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 111 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"type": "git",
"url": "git+https://github.com/MetaMask/template-snap-monorepo.git"
},
"license": "(MIT-0 OR Apache-2.0)",
"license": "Apache-2.0",
"author": "",
"workspaces": [
"packages/*"
Expand Down
4 changes: 0 additions & 4 deletions packages/site/.env.production

This file was deleted.

32 changes: 2 additions & 30 deletions packages/site/src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import styled, { useTheme } from 'styled-components';
import { ReactComponent as MetaMaskFox } from '../assets/metamask_fox.svg';
import { MetaMask } from './MetaMask';
import { PoweredBy } from './PoweredBy';
import styled from 'styled-components';

const FooterWrapper = styled.footer`
display: flex;
Expand All @@ -13,35 +10,10 @@ const FooterWrapper = styled.footer`
border-top: 1px solid ${(props) => props.theme.colors.border.default};
`;

const PoweredByButton = styled.a`
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
padding: 1.2rem;
border-radius: ${({ theme }) => theme.radii.button};
box-shadow: ${({ theme }) => theme.shadows.button};
background-color: ${({ theme }) => theme.colors.background.alternative};
`;

const PoweredByContainer = styled.div`
display: flex;
flex-direction: column;
margin-left: 1rem;
`;

export const Footer = () => {
const theme = useTheme();

return (
<FooterWrapper>
<PoweredByButton href="https://docs.metamask.io/" target="_blank">
<MetaMaskFox />
<PoweredByContainer>
<PoweredBy color={theme.colors.text.muted} />
<MetaMask color={theme.colors.text.default} />
</PoweredByContainer>
</PoweredByButton>
<span> powered by RSS3 </span>
</FooterWrapper>
);
};
2 changes: 1 addition & 1 deletion packages/site/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const Header = ({
<HeaderWrapper>
<LogoWrapper>
<SnapLogo color={theme.colors.icon.default} size={36} />
<Title>template-snap</Title>
<Title>RSS3-Cron</Title>
</LogoWrapper>
<RightContainer>
<Toggle
Expand Down
53 changes: 20 additions & 33 deletions packages/site/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,6 @@ const Span = styled.span`
color: ${(props) => props.theme.colors.primary.default};
`;

const Subtitle = styled.p`
font-size: ${({ theme }) => theme.fontSizes.large};
font-weight: 500;
margin-top: 0;
margin-bottom: 0;
${({ theme }) => theme.mediaQueries.small} {
font-size: ${({ theme }) => theme.fontSizes.text};
}
`;

const CardContainer = styled.div`
display: flex;
flex-direction: row;
Expand All @@ -78,24 +68,24 @@ const CardContainer = styled.div`
margin-top: 1.5rem;
`;

const Notice = styled.div`
background-color: ${({ theme }) => theme.colors.background.alternative};
border: 1px solid ${({ theme }) => theme.colors.border.default};
color: ${({ theme }) => theme.colors.text.alternative};
border-radius: ${({ theme }) => theme.radii.default};
padding: 2.4rem;
margin-top: 2.4rem;
max-width: 60rem;
width: 100%;
// const Notice = styled.div`
// background-color: ${({ theme }) => theme.colors.background.alternative};
// border: 1px solid ${({ theme }) => theme.colors.border.default};
// color: ${({ theme }) => theme.colors.text.alternative};
// border-radius: ${({ theme }) => theme.radii.default};
// padding: 2.4rem;
// margin-top: 2.4rem;
// max-width: 60rem;
// width: 100%;

& > * {
margin: 0;
}
${({ theme }) => theme.mediaQueries.small} {
margin-top: 1.2rem;
padding: 1.6rem;
}
`;
// & > * {
// margin: 0;
// }
// ${({ theme }) => theme.mediaQueries.small} {
// margin-top: 1.2rem;
// padding: 1.6rem;
// }
// `;

const ErrorMessage = styled.div`
background-color: ${({ theme }) => theme.colors.error.muted};
Expand Down Expand Up @@ -189,11 +179,8 @@ const Index = () => {
return (
<Container>
<Heading>
Welcome to <Span>template-snap</Span>
Welcome to <Span>RSS3 Cron</Span>
</Heading>
<Subtitle>
Get started by editing <code>src/index.ts</code>
</Subtitle>
<CardContainer>
{state.error && (
<ErrorMessage>
Expand Down Expand Up @@ -291,14 +278,14 @@ const Index = () => {
}
/>

<Notice>
{/* <Notice>
<p>
Please note that the <b>snap.manifest.json</b> and{' '}
<b>package.json</b> must be located in the server root directory and
the bundle must be hosted at the location specified by the location
field.
</p>
</Notice>
</Notice> */}
</CardContainer>
</Container>
);
Expand Down
2 changes: 1 addition & 1 deletion packages/snap/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "dmoo-cron",
"name": "rss3-cron",
"version": "0.1.0",
"description": "RSS3 snap monitor your wallet address.",
"repository": {
Expand Down
8 changes: 4 additions & 4 deletions packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"version": "0.1.0",
"description": "dmoo cron monitor your wallet address.",
"proposedName": "Dmoo Cron",
"description": "RSS3 cron monitor your wallet address.",
"proposedName": "RSS3 Cron",
"repository": {
"type": "git",
"url": "https://github.com/dmoosocool/rss3-snap.git"
},
"source": {
"shasum": "1ywKWhMgSTYMWNxvwZuuheZf/593xhZ4ty8i7dptrtk=",
"shasum": "6YvKpGu7VupbgBoFvnh+nSiglbcQ7sQMH4zShwNn2+A=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
"iconPath": "images/icon.svg",
"packageName": "dmoo-cron",
"packageName": "rss3-cron",
"registry": "https://registry.npmjs.org/"
}
}
Expand Down
74 changes: 37 additions & 37 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -20166,6 +20166,43 @@ __metadata:
languageName: node
linkType: hard

"rss3-cron@workspace:packages/snap":
version: 0.0.0-use.local
resolution: "rss3-cron@workspace:packages/snap"
dependencies:
"@jest/globals": ^29.5.0
"@lavamoat/allow-scripts": ^2.0.3
"@metamask/auto-changelog": ^2.6.0
"@metamask/eslint-config": ^10.0.0
"@metamask/eslint-config-jest": ^10.0.0
"@metamask/eslint-config-nodejs": ^10.0.0
"@metamask/eslint-config-typescript": ^10.0.0
"@metamask/snaps-cli": ^2.0.1
"@metamask/snaps-jest": ^1.0.0
"@metamask/snaps-types": ^2.0.0
"@metamask/snaps-ui": ^2.0.0
"@metamask/utils": ^8.1.0
"@typescript-eslint/eslint-plugin": ^5.33.0
"@typescript-eslint/parser": ^5.33.0
buffer: ^6.0.3
eslint: ^8.21.0
eslint-config-prettier: ^8.1.0
eslint-plugin-import: ^2.26.0
eslint-plugin-jest: ^26.8.2
eslint-plugin-jsdoc: ^39.2.9
eslint-plugin-node: ^11.1.0
eslint-plugin-prettier: ^4.2.1
ethers: ^6.7.1
jest: ^29.5.0
prettier: ^2.2.1
prettier-plugin-packagejson: ^2.2.11
rimraf: ^3.0.2
through2: ^4.0.2
ts-jest: ^29.1.0
typescript: ^4.7.4
languageName: unknown
linkType: soft

"run-async@npm:^2.4.0":
version: 2.4.1
resolution: "run-async@npm:2.4.1"
Expand Down Expand Up @@ -20712,43 +20749,6 @@ __metadata:
languageName: node
linkType: hard

"snap@workspace:packages/snap":
version: 0.0.0-use.local
resolution: "snap@workspace:packages/snap"
dependencies:
"@jest/globals": ^29.5.0
"@lavamoat/allow-scripts": ^2.0.3
"@metamask/auto-changelog": ^2.6.0
"@metamask/eslint-config": ^10.0.0
"@metamask/eslint-config-jest": ^10.0.0
"@metamask/eslint-config-nodejs": ^10.0.0
"@metamask/eslint-config-typescript": ^10.0.0
"@metamask/snaps-cli": ^2.0.1
"@metamask/snaps-jest": ^1.0.0
"@metamask/snaps-types": ^2.0.0
"@metamask/snaps-ui": ^2.0.0
"@metamask/utils": ^8.1.0
"@typescript-eslint/eslint-plugin": ^5.33.0
"@typescript-eslint/parser": ^5.33.0
buffer: ^6.0.3
eslint: ^8.21.0
eslint-config-prettier: ^8.1.0
eslint-plugin-import: ^2.26.0
eslint-plugin-jest: ^26.8.2
eslint-plugin-jsdoc: ^39.2.9
eslint-plugin-node: ^11.1.0
eslint-plugin-prettier: ^4.2.1
ethers: ^6.7.1
jest: ^29.5.0
prettier: ^2.2.1
prettier-plugin-packagejson: ^2.2.11
rimraf: ^3.0.2
through2: ^4.0.2
ts-jest: ^29.1.0
typescript: ^4.7.4
languageName: unknown
linkType: soft

"socket.io-adapter@npm:~2.1.0":
version: 2.1.0
resolution: "socket.io-adapter@npm:2.1.0"
Expand Down

0 comments on commit f982714

Please sign in to comment.