Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5 from trechriron/trentin-basic-layout-v1
Browse files Browse the repository at this point in the history
Trentin basic layout v1
  • Loading branch information
trechriron authored Dec 5, 2023
2 parents d7bb02f + dd704c2 commit 53efb0e
Show file tree
Hide file tree
Showing 23 changed files with 215 additions and 894 deletions.
3 changes: 1 addition & 2 deletions .bos-loader.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
paths = [
{ account = "bwe-demos.near", path = "./src" },
{ account = "bwe.near", path = "./ignore" },
{ account = "monkeypatcher.near", path = "./src" },
]
44 changes: 8 additions & 36 deletions .github/workflows/deploy-mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,11 @@ on:
branches: [main]
concurrency: main # do not allow parallel execution
jobs:
# We want to leverage the reusable workflow from bos cli as shown here, but
# we need to temporarily use a modified version of that in order to support
# tsx file deployment
#
# deploy-mainnet:
# uses: bos-cli-rs/bos-cli-rs/.github/workflows/deploy-mainnet.yml@master
# with:
# deploy-account-address: bwe-demos.near
# signer-account-address: bwe-demos.near
# signer-public-key: ed25519:8WLckTAFUtT7SADeAw4BF7tUFfgeG5ZW5kFbfi1TQZQB
# secrets:
# SIGNER_PRIVATE_KEY: ${{ secrets.SIGNER_PRIVATE_KEY }}
deploy-widgets:
runs-on: ubuntu-latest
name: Deploy widgets to social.near (mainnet)
env:
BOS_DEPLOY_ACCOUNT_ID: bwe-demos.near
BOS_SIGNER_ACCOUNT_ID: bwe-demos.near
BOS_SIGNER_PUBLIC_KEY: ed25519:8WLckTAFUtT7SADeAw4BF7tUFfgeG5ZW5kFbfi1TQZQB
BOS_SIGNER_PRIVATE_KEY: ${{ secrets.SIGNER_PRIVATE_KEY }}

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Change all .tsx files to .jsx files
run: |
find . -name "*.tsx" -exec sh -c 'mv "$1" "${1%.tsx}.jsx"' _ {} \;
- name: Install near-social CLI
run: |
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/FroVolod/bos-cli-rs/releases/download/v0.3.6/bos-cli-installer.sh | sh
- name: Deploy widgets
run: |
bos components deploy "$BOS_DEPLOY_ACCOUNT_ID" sign-as "$BOS_SIGNER_ACCOUNT_ID" network-config mainnet sign-with-plaintext-private-key --signer-public-key "$BOS_SIGNER_PUBLIC_KEY" --signer-private-key "$BOS_SIGNER_PRIVATE_KEY" send
deploy-mainnet:
uses: bos-cli-rs/bos-cli-rs/.github/workflows/deploy-mainnet.yml@master
with:
deploy-account-address: monkeypatcher.near
signer-account-address: monkeypatcher.near
signer-public-key: ed25519:2Qhd4nhX8DkRzz7VVWsT8f5L1xNuh9ZmECsfbRBBTBoq
secrets:
SIGNER_PRIVATE_KEY: ${{ secrets.SIGNER_PRIVATE_KEY }}
27 changes: 27 additions & 0 deletions src/App/DevForm.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const devStyles = {
header: {
display: "flex",
justifyContent: "center",
alignItems: "center",
height: "100%",
width: "100%",
fontSize: "2rem",
},
body: {
display: "flex",
flexDirection: "column",
justifyContent: "center",
alignItems: "center",
height: "300px",
width: "100%",
},
};

return (
<div>
<Widget src="monkeypatcher.near/App.Header" trust={{ mode: "trusted-author" }} />
<h1 style={devStyles.header}>DEV FORM</h1>
<div style={devStyles.body}></div>
<div><Widget src="monkeypatcher.near/App.Footer" trust={{ mode: "trusted-author" }} /></div>
</div>
);
28 changes: 28 additions & 0 deletions src/App/DevResultPage.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
const devResultStyles = {
header: {
display: "flex",
justifyContent: "center",
alignItems: "center",
height: "100%",
width: "100%",
fontSize: "2rem",
},
body: {
display: "flex",
flexDirection: "column",
justifyContent: "center",
alignItems: "center",
height: "300px",
width: "100%",
},
};

return (
<div>
<Widget src="monkeypatcher.near/App.Header" trust={{ mode: "trusted-author" }} />
<h1 style={devResultStyles.header}>DEV RESULT</h1>
<p>Result line graph from data for dev usage.</p>
<div><Widget src="monkeypatcher.near/App.Footer" trust={{ mode: "trusted-author" }} /></div>
</div>

)
32 changes: 32 additions & 0 deletions src/App/Footer.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
const footerStyles = {
row: {
display: "flex",
flexDirection: "row",
justifyContent: "space-around",
alignItems: "center",
padding: "10px",
backgroundColor: 'black',
color: 'white',
},
column: {
display: "flex",
flexDirection: "column",
justifyContent: "space-around",
},
}

return (
<div>
<div style={footerStyles.row}>
<div style={footerStyles.column}>
<a href="/monkeypatcher.near/scc">HOME</a>
</div>
<div style={footerStyles.column}>
<a href="/monkeypatcher.near/App.ProviderForm">PROVIDER FORM</a>
</div>
<div style={footerStyles.column}>
<a href="/monkeypatcher.near/App.DevForm" >DEVELOPER FORM</a>
</div>
</div>
</div>
);
32 changes: 32 additions & 0 deletions src/App/Header.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
const headerStyles = {
header: {
display: "flex",
justifyContent: "center",
alignItems: "center",
height: "100%",
width: "100%",
fontSize: "2rem",
},
row: {
display: "flex",
flexDirection: "row",
justifyContent: "space-around",
alignItems: "center",
padding: "10px",
backgroundColor: 'black',
color: 'white',
},
column: {
display: "flex",
flexDirection: "column",
justifyContent: "space-around",
},
}

return (
<div>
<div style={headerStyles.row}>
<h1 style={headerStyles.header}>BOS Services Calculator</h1>
</div>
</div>
);
28 changes: 28 additions & 0 deletions src/App/ProviderForm.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
const providerStyles = {
header: {
display: "flex",
justifyContent: "center",
alignItems: "center",
height: "100%",
width: "100%",
fontSize: "2rem",
},
body: {
display: "flex",
flexDirection: "column",
justifyContent: "center",
alignItems: "center",
height: "300px",
width: "100%",
},
};

return (
<div>
<Widget src="monkeypatcher.near/App.Header" trust={{ mode: "trusted-author" }} />
<h1 style={providerStyles.header}>PROVIDER FORM</h1>
<div style={providerStyles.body}></div>
<div><Widget src="monkeypatcher.near/App.Footer" trust={{ mode: "trusted-author" }} /></div>
</div>
);
ß
28 changes: 28 additions & 0 deletions src/App/ProviderResultPage.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
const providerResultStyles = {
header: {
display: "flex",
justifyContent: "center",
alignItems: "center",
height: "100%",
width: "100%",
fontSize: "2rem",
},
body: {
display: "flex",
flexDirection: "column",
justifyContent: "center",
alignItems: "center",
height: "300px",
width: "100%",
},
};


return (
<div>
<Widget src="monkeypatcher.near/App.Header" trust={{ mode: "trusted-author" }} />
<h1 style={providerResultStyles.header}>PROVIDER RESULT</h1>
<p>Result line graph and info for provider form data.</p>
<div><Widget src="monkeypatcher.near/App.Footer" trust={{ mode: "trusted-author" }} /></div>
</div>
);
1 change: 0 additions & 1 deletion src/HelloWorld.jsx

This file was deleted.

87 changes: 0 additions & 87 deletions src/LandingPage.jsx

This file was deleted.

Loading

0 comments on commit 53efb0e

Please sign in to comment.