Skip to content

Commit

Permalink
Removed Eruda
Browse files Browse the repository at this point in the history
erfanmola committed Oct 10, 2023
1 parent 6166e07 commit 64a84a3
Showing 4 changed files with 0 additions and 32 deletions.
4 changes: 0 additions & 4 deletions docs/technologies-used.md
Original file line number Diff line number Diff line change
@@ -56,10 +56,6 @@ We use [SparkMD5](https://www.npmjs.com/package/spark-md5) for calculating the M

We use [@twa-dev/sdk](https://github.com/twa-dev/SDK) as a replacement for the legacy `telegram-web-app.js`. Telegram web dudes are a bunch of C++ developers familiar with HTML/CSS, they use JQuery and Bootstrap from the early 80's and they don't provide a modular solution nor a package for their Javascripts, that's why we use this as package a replacement.

### Eruda

We use [Eruda](https://github.com/liriliri/eruda) console in dev mode as our DevTools alternative in Mobile platforms. I'm an i3wm user who [cannot use webApps on desktop](https://github.com/telegramdesktop/tdesktop/issues/26288), also an iOS user who has [no DevTools in mobile](https://core.telegram.org/bots/webapps#debug-mode-for-mini-apps), that's why I have to use this alternative console. You guys with Android/Windows/MacOS/Linux(supported DE's) will not have this problem.

## BackEnd
Initally our aim was to go completely serverless, but [Pusher](#pusher) forced us to authorize our clients at server-side, that's we made a tiny backend for this purpose, **NO DATA IS STORED IN SERVER**.

6 changes: 0 additions & 6 deletions webApp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion webApp/package.json
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@
"dependencies": {
"@erfanmola/televue": "^0.1.4",
"@twa-dev/sdk": "^6.9.0",
"eruda": "^3.0.1",
"lottie-colorify": "^0.8.0",
"pusher-js": "^8.3.0",
"spark-md5": "^3.0.2",
21 changes: 0 additions & 21 deletions webApp/src/App.vue
Original file line number Diff line number Diff line change
@@ -3,9 +3,6 @@
import { AppearanceProvider, LocaleProvider, AuthProvider } from '@erfanmola/televue';
import '@erfanmola/televue/style.css';
// Check if we are in dev mode
const devMode = (import.meta.env.MODE === 'development') && true;
// Retrive VITE_HEX_HMAC_SIGNATURE environment variable if available
const hex_hmac_signature = import.meta.env.VITE_HEX_HMAC_SIGNATURE;
@@ -30,24 +27,6 @@
Your client is not authorized, please use this WebApp from a valid Telegram Client
</template>
</component>
<!-- Include liriliri/eruda developer console if we are in Development Mode -->
<teleport to="head" v-if="devMode">
<component is="script" v-if="devMode" src="node_modules/eruda/eruda.js"></component>
<component is="script" v-if="devMode">
let timer = setInterval(() => {
if (typeof eruda === 'object') {
clearInterval(timer);
eruda.init();
}
}, 250);
</component>
</teleport>
</template>

<style lang="scss">

0 comments on commit 64a84a3

Please sign in to comment.