~repos /only-bible-app
git clone https://pyrossh.dev/repos/only-bible-app.git
The only bible app you will ever need. No ads. No in-app purchases. No distractions.
ba5eae89
—
pyrossh 2 years ago
fix path alias
- astro.config.mjs +7 -1
- jsconfig.json +8 -0
- src/pages/bibles/[bible]/[book]/[chapter].astro +5 -5
- src/pages/index.astro +1 -1
astro.config.mjs
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { defineConfig } from 'astro/config';
|
|
2
|
+
import path from 'path';
|
|
2
3
|
|
|
3
4
|
// https://astro.build/config
|
|
4
5
|
export default defineConfig({
|
|
5
|
-
integrations: []
|
|
6
|
+
integrations: [],
|
|
7
|
+
resolve: {
|
|
8
|
+
alias: {
|
|
9
|
+
'@': path.resolve(process.cwd(), './src'),
|
|
10
|
+
},
|
|
11
|
+
},
|
|
6
12
|
});
|
jsconfig.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"baseUrl": ".",
|
|
4
|
+
"paths": {
|
|
5
|
+
"@/*": ["src/*"]
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
src/pages/bibles/[bible]/[book]/[chapter].astro
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
import { Icon } from "astro-icon";
|
|
3
|
-
import Layout from "
|
|
3
|
+
import Layout from "@/layouts/Layout.astro";
|
|
4
|
-
import PlayButton from "
|
|
4
|
+
import PlayButton from "@/components/PlayButton.astro";
|
|
5
|
-
import kannada from "
|
|
5
|
+
import kannada from "@/data/kannada.json";
|
|
6
|
-
import Select from "
|
|
6
|
+
import Select from "@/components/Select.astro";
|
|
7
|
-
import VerseSection from "
|
|
7
|
+
import VerseSection from "@/components/VerseSection.astro";
|
|
8
8
|
|
|
9
9
|
export function getStaticPaths() {
|
|
10
10
|
return kannada.flatMap((book) =>
|
src/pages/index.astro
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
import Layout from "
|
|
2
|
+
import Layout from "@/layouts/Layout.astro";
|
|
3
3
|
---
|
|
4
4
|
|
|
5
5
|
<Layout title="Welcome to Astro.">
|