-
Powered by
-
DigitalOcean
+
+
+
+

+
Acode
-
-
+
Powerful, extensible, and open-source code editor for Android. Build anything, anywhere.
+
+
+
+
+
+
+
+
+
+
+
+
© {new Date().getFullYear()} Foxbiz Software Pvt. Ltd. All rights reserved.
+
Built with passion for developers
+
>
);
diff --git a/client/pages/home/index.js b/client/pages/home/index.js
index d5f8cb0..710eba0 100644
--- a/client/pages/home/index.js
+++ b/client/pages/home/index.js
@@ -1,6 +1,5 @@
import './style.scss';
-import { render } from 'github-buttons';
import Reactive from 'html-tag-js/reactive';
import Ref from 'html-tag-js/ref';
import background from 'lib/background';
@@ -13,9 +12,22 @@ import tabletImageWebp from 'res/tablet.webp';
export default async function home() {
const canvas = Ref();
const pluginCount = Reactive('...');
+ const stars = Reactive('...');
+ const forks = Reactive('...');
showLoading();
+ fetch('https://api.github.com/repos/acode-foundation/acode')
+ .then((res) => res.json())
+ .then((data) => {
+ stars.value = `${(data.stargazers_count / 1000).toFixed(1)}k`;
+ forks.value = data.forks_count.toLocaleString();
+ })
+ .catch(() => {
+ stars.value = '1.2k+';
+ forks.value = '200+';
+ });
+
let plugins = [];
try {
const { count } = await (await fetch('/api/plugins/count')).json();
@@ -46,69 +58,71 @@ export default async function home() {