diff --git a/.node-version b/.node-version new file mode 100644 index 00000000..7950a445 --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +v18.17.0 diff --git a/README.md b/README.md index 531e9eab..caeefc79 100644 --- a/README.md +++ b/README.md @@ -6,11 +6,11 @@ Wallet that will let you see the Tokens ([LSP7](https://docs.lukso.tech/standard ## 🚀 Deployments -### Preview: +### Preview When you create a PR, a preview URL will be appended to the PR discussion. -### Staging: +### Staging Branch: `develop` @@ -78,3 +78,8 @@ yarn unlink ../tools-web-components/package ``` > Make sure you remove link before pushing, otherwise it won't build in Cloudflare. + +### Releasing + +We use [Release Please](https://github.com/googleapis/release-please) to automate release process. Just merge your feature PR into `develop` branch and new release PR with changelog will be created. You can stack multiple PRs into release. +Once you are ready to release just merge release PR into `main` branch. diff --git a/app.vue b/app.vue index edbb6695..17dfdc02 100644 --- a/app.vue +++ b/app.vue @@ -3,10 +3,6 @@ import { RouteLocationNormalized, NavigationGuardNext } from 'vue-router' import { fetchProfile } from '@/utils/fetchProfile' import { PROVIDERS, STORAGE_KEY } from '@/types/enums' -import { - CONNECTION_EXPIRY_CHECK_INTERVAL_MS, - INJECTED_PROVIDER, -} from '@/shared/config' import { assertString } from '@/utils/validators' if (typeof window !== 'undefined') { @@ -17,9 +13,11 @@ if (typeof window !== 'undefined') { const web3Store = useWeb3Store() const appStore = useAppStore() const { providerEvents, disconnect } = useBrowserExtension() -const { reloadProfile } = useProfileStore() -const { setConnectedAddress, setConnectedProfile, setStatus } = - useConnectionStore() +const { + setProfile: setConnectedProfile, + setStatus, + profile: connectedProfile, +} = useConnectedProfileStore() const router = useRouter() const setupTranslations = () => { @@ -53,7 +51,7 @@ const setupConnectedProfile = async () => { setStatus('isConnected', true) setStatus('isProfileLoading', true) const profile = await fetchProfile(connectedAddress) - setConnectedAddress(connectedAddress) + connectedProfile.address = connectedAddress setConnectedProfile(profile) } } catch (error) { @@ -82,8 +80,8 @@ const routerBackProfileLoad = async () => { assertAddress(toProfileAddress, 'profile') if (toProfileAddress !== fromProfileAddress) { - const profile = await fetchProfile(toProfileAddress) - reloadProfile(profile) + await setupViewedProfile(toProfileAddress) + await setupViewedAssets(toProfileAddress) } } catch (error) { console.error(error) @@ -125,6 +123,6 @@ onMounted(async () => { - + diff --git a/components/connect-or-install-button.vue b/components/AppButtonConnectOrInstall.vue similarity index 96% rename from components/connect-or-install-button.vue rename to components/AppButtonConnectOrInstall.vue index 58253d77..9d663a81 100644 --- a/components/connect-or-install-button.vue +++ b/components/AppButtonConnectOrInstall.vue @@ -1,6 +1,6 @@