Skip to content

Commit

Permalink
feat: remove aepp browser
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed May 24, 2023
1 parent 7f99704 commit 4f63190
Show file tree
Hide file tree
Showing 29 changed files with 299 additions and 404 deletions.
1 change: 0 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
VUE_APP_BACKEND_URL=https://stage-signaling.aepps.com
VUE_APP_VAPID_PUBLIC_KEY=BHkQhNWW2TKfKfxo7vAgXkZGcVOXGrjhIZJlN1hKp6abIjWJgO8FYPswXJ35XEuKw46O9yZ-8KmsZ4-TXNBePcw
VUE_APP_HOME_PAGE_URL=https://registry.aepps.tech
VUE_APP_CORS_ANYWHERE_URL=https://pr-1489-aepp-base.stg.aepps.com
2 changes: 2 additions & 0 deletions src/components/AppShortcut.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,13 @@ export default {
overflow-wrap: break-word;
img {
display: block;
width: functions.rem(75px);
height: functions.rem(75px);
border-radius: functions.rem(18px);
box-shadow: 0 0 16px rgba(0, 33, 87, 0.15);
margin-bottom: 5px;
background-color: variables.$color-neutral-maximum;
}
}
</style>
40 changes: 0 additions & 40 deletions src/components/ProgressFake.vue

This file was deleted.

25 changes: 4 additions & 21 deletions src/components/mobile/TabBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
<ConnectionStatus />

<div class="wrapper">
<ButtonPlain
v-if="!$globals.DISABLED_BROWSER"
:to="browserPath"
>
<ButtonPlain :to="{ name: 'app-browser' }">
<Grid />
<div>{{ $t('app.title') }}</div>
</ButtonPlain>
Expand All @@ -16,14 +13,6 @@
<div>{{ $t('transfer.title') }}</div>
</ButtonPlain>

<ButtonPlain
v-if="$globals.DISABLED_BROWSER"
:to="{ name: 'transaction-list' }"
>
<List />
<div>{{ $t('transfer.transaction.title') }}</div>
</ButtonPlain>

<ButtonPlain
:class="showAccountSwitcher ? 'router-link-active' : ''"
@click="accountSwitcher"
Expand All @@ -45,10 +34,10 @@
</template>

<script>
import { mapState, mapGetters } from 'vuex';
import { mapGetters } from 'vuex';
import ButtonPlain from '../ButtonPlain.vue';
import {
Grid, Transfer, List, Contacts, Settings,
Grid, Transfer, Contacts, Settings,
} from '../icons';
import AeIdenticon from '../AeIdenticon.vue';
import ConnectionStatus from '../ConnectionStatus.vue';
Expand All @@ -60,7 +49,6 @@ export default {
ButtonPlain,
Grid,
Transfer,
List,
Contacts,
Settings,
ConnectionStatus,
Expand All @@ -69,12 +57,7 @@ export default {
props: {
showAccountSwitcher: Boolean,
},
computed: {
...mapGetters({ activeAccount: 'accounts/active' }),
...mapState({
browserPath: ({ mobile }) => mobile.browserPath,
}),
},
computed: mapGetters({ activeAccount: 'accounts/active' }),
methods: {
accountSwitcher() {
if (this.showAccountSwitcher) return;
Expand Down
66 changes: 0 additions & 66 deletions src/components/mobile/UrlForm.vue

This file was deleted.

26 changes: 0 additions & 26 deletions src/components/mobile/__tests__/UrlForm.js

This file was deleted.

8 changes: 8 additions & 0 deletions src/lib/aeternity-apps.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
"superhero.com",
"wallet.superhero.com",
"governance.aeternity.com",
"graffiti.aeternity.com",
"migrate.aeternity.com",
"faucet.aepps.com"
]
9 changes: 0 additions & 9 deletions src/lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ export const MAX_AUCTION_NAME_LENGTH = 12 + AENS_DOMAIN.length;

export const NAME_LIST_ROUTE_NAMES = ['name-list', 'auction-list', 'auction-list-character-length'];

export const PROTOCOLS_ALLOWED = [
'https:',
...window.location.protocol === 'https:' ? [] : ['http:'],
];
export const PROTOCOL_DEFAULT = window.location.protocol === 'https:'
|| process.env.NODE_ENV === 'production' ? 'https:' : 'http:';

export const ROUTE_MOBILE_LOGGED_IN = { name: 'transfer' };

// https://developers.google.com/web/fundamentals/app-install-banners/#detect-mode
Expand All @@ -27,5 +20,3 @@ export const IS_IOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MS
export const RUNNING_IN_FRAME = window.parent !== window;

export const RUNNING_IN_POPUP = !!window.opener && window.name === 'popup';

export const DISABLED_BROWSER = process.env.VUE_APP_CORDOVA && IS_IOS;
4 changes: 1 addition & 3 deletions src/locales/cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"list": {
"featured-guide": "<primary>精选</primary>",
"bookmarked-guide": "Bookmarks",
"guide": "æpps <primary>浏览器</primary> (beta)",
"guide": "æpps <primary>浏览器</primary>",
"note": "将运行在æternity区块链上的æpps添加到这里",
"by": "by",
"launch": "Launch"
Expand All @@ -142,8 +142,6 @@
"url-form-placeholder": "输入链接",

"browser": {
"refresh": "更新",

"confirm-account-access": {
"guide": "<app /><br />请求路径到<br /><account />",

Expand Down
4 changes: 1 addition & 3 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"list": {
"featured-guide": "<primary>Featured</primary>",
"bookmarked-guide": "Bookmarks",
"guide": "æpps <primary>browser</primary> (beta)",
"guide": "æpps <primary>browser</primary>",
"note": "æpps running on the æternity blockchain will be added below.",
"by": "by",
"launch": "Launch"
Expand All @@ -142,8 +142,6 @@
"url-form-placeholder": "Enter URL",

"browser": {
"refresh": "Refresh",

"confirm-account-access": {
"guide": "<app /><br />requests access to<br /><account />",

Expand Down
4 changes: 1 addition & 3 deletions src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"list": {
"featured-guide": "<primary>æpps destacados</primary>",
"bookmarked-guide": "Mis æpps",
"guide": "æpps <primary>explorador</primary> (beta)",
"guide": "æpps <primary>explorador</primary>",
"note": "æpps que se ejecutan en la blockchain de æternity se agregarán a continuación",
"by": "by",
"launch": "Launch"
Expand All @@ -142,8 +142,6 @@
"url-form-placeholder": "Ingrese la URL de æpp",

"browser": {
"refresh": "Actualizar",

"confirm-account-access": {
"guide": "<app /><br /> solicita acceso a <br /> <account />",

Expand Down
6 changes: 0 additions & 6 deletions src/locales/keysUsedInOtherProjects.js

This file was deleted.

4 changes: 1 addition & 3 deletions src/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"list": {
"featured-guide": "<primary>Избранное</primary>",
"bookmarked-guide": "Закладки",
"guide": "æpps <primary>браузер</primary> (бета)",
"guide": "æpps <primary>браузер</primary>",
"note": "æpps, работающие в блокчейне æternity, будут добавлены ниже.",
"by": "автор",
"launch": "Запустить"
Expand All @@ -142,8 +142,6 @@
"url-form-placeholder": "Введите URL",

"browser": {
"refresh": "Обновить",

"confirm-account-access": {
"guide": "<app /><br />запрашивает доступ к<br /><account />",

Expand Down
Loading

0 comments on commit 4f63190

Please sign in to comment.