Skip to content

Commit

Permalink
Merge pull request #5 from wpdas/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
wpdas committed Apr 26, 2024
2 parents 58b3b76 + a544354 commit de37075
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"deploy:testnet": "npm run build; alem deploy --network testnet"
},
"dependencies": {
"alem": "^1.0.0-beta.20"
"alem": "^1.0.0-beta.31"
},
"devDependencies": {
"@types/styled-components": "^5.1.26",
Expand Down
1 change: 0 additions & 1 deletion src/components/ContactItems/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ type Props = {
onSelect?: (profileInfo: SimpleProfileInfo) => void;
};

// TODO: Criar uma forma no Router de deixar paginas pre-renderizadas
const ContactItems = ({ accountIds, onSelect }: Props) => {
const [items, setItems] = useState<SimpleProfileInfo[]>([]);
const [ready, setReady] = useState(false);
Expand Down
23 changes: 23 additions & 0 deletions src/modules/TimeAgo/timeAgo.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
import { UseModuleProps } from "alem";
import en from "./en";

// TODO: Fazer video tutorial disso
// Code builder for "formatTimestamp"
// const formatTimestampCode = (timestamp: number) => {
// const code = `
// (() => {
// TimeAgo.addDefaultLocale({
// ${en}
// });

// return new TimeAgo('en-US').format(new Date(${timestamp}));
// })()
// `;
// return code;
// };

// const timeAgo = {
// formatTimestamp: (timestamp: number, onComplete: (data: string) => void) =>
// ({
// code: formatTimestampCode(timestamp),
// onComplete,
// } as UseModuleProps),
// };

const timeAgo = {
moduleSetup: `
TimeAgo.addDefaultLocale({
Expand Down
20 changes: 16 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1139,10 +1139,10 @@ accepts@~1.3.4, accepts@~1.3.8:
mime-types "~2.1.34"
negotiator "0.6.3"

alem@^1.0.0-beta.17:
version "1.0.0-beta.17"
resolved "https://registry.yarnpkg.com/alem/-/alem-1.0.0-beta.17.tgz#e2bce98c364ef2ebd44c9dedb30531eea4c60e21"
integrity sha512-r7R3d8kTeb+uo9weXVlfIhYrsc1MH7mptAK4R1jaj81/F12s8tkP34HxHhtCKw8DSawmyP7zce7kbxob+j8gPQ==
alem@^1.0.0-beta.31:
version "1.0.0-beta.31"
resolved "https://registry.yarnpkg.com/alem/-/alem-1.0.0-beta.31.tgz#b440b1185371f2f1808c6cd9c4e66feac38f5b24"
integrity sha512-kOP+hJ3eHMWAmHoWHyjcO87kVNt5i//FTQKz4DmWy86bHDW3gyf7LyAp0lZYzObrD7tsVJ0pNkowQT2fSCeuwg==
dependencies:
"@babel/core" "^7.24.3"
"@babel/plugin-syntax-jsx" "^7.24.1"
Expand All @@ -1155,7 +1155,9 @@ alem@^1.0.0-beta.17:
chokidar "^3.5.3"
commander "^11.1.0"
crypto-js "^4.2.0"
dotenv "^16.4.5"
express "^4.18.2"
lodash "^4.17.21"
mock-fs "^5.2.0"
near-cli-rs "^0.4.3"
node-html-parser "^6.1.12"
Expand Down Expand Up @@ -1632,6 +1634,11 @@ domutils@^3.0.1:
domelementtype "^2.3.0"
domhandler "^5.0.3"

dotenv@^16.4.5:
version "16.4.5"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.4.5.tgz#cdd3b3b604cb327e286b4762e13502f717cb099f"
integrity sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==

eastasianwidth@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz#696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb"
Expand Down Expand Up @@ -2122,6 +2129,11 @@ lodash.debounce@^4.0.8:
resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af"
integrity sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==

lodash@^4.17.21:
version "4.17.21"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==

log-update@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/log-update/-/log-update-5.0.1.tgz#9e928bf70cb183c1f0c9e91d9e6b7115d597ce09"
Expand Down

0 comments on commit de37075

Please sign in to comment.