Compare commits
3 Commits
ce5a46192b
...
2bceff3326
Author | SHA1 | Date | |
---|---|---|---|
2bceff3326 | |||
![]() |
8972645981 | ||
![]() |
6728f5f63d |
3
.env
|
@ -1,3 +1,6 @@
|
||||||
|
NUXT_PUBLIC_API_NAME=api/
|
||||||
|
NUXT_PUBLIC_BASE_URL=/
|
||||||
|
|
||||||
# For more information refere to documents: https://cli.vuejs.org/guide/mode-and-env.html#example-staging-mode
|
# For more information refere to documents: https://cli.vuejs.org/guide/mode-and-env.html#example-staging-mode
|
||||||
|
|
||||||
VITE_GOOGLECLIENTID="1044522269248-903n0gpd6kv9slmmr7cp2o8u04ru78qv.apps.googleusercontent.com"
|
VITE_GOOGLECLIENTID="1044522269248-903n0gpd6kv9slmmr7cp2o8u04ru78qv.apps.googleusercontent.com"
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
NUXT_PUBLIC_API_NAME=api/
|
NUXT_PUBLIC_BASE_URL=http://192.168.23.161/
|
||||||
NUXT_PUBLIC_BASE_URL=http://192.168.23.60/
|
|
||||||
|
|
||||||
VITE_APP_NAME=Hadith
|
VITE_APP_NAME=Hadith
|
||||||
|
|
||||||
|
|
14
dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
FROM node:22
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
||||||
|
COPY package*.json ./
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
RUN npm run build-haditha
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
|
|
||||||
|
CMD ["node", ".output/server/index.mjs"]
|
|
@ -51,7 +51,7 @@ export default defineNuxtConfig({
|
||||||
nitro: {
|
nitro: {
|
||||||
compressPublicAssets: true,
|
compressPublicAssets: true,
|
||||||
prerender: {
|
prerender: {
|
||||||
routes: ["/haditha/about-us", "/haditha/contact"], // Pre-render these routes
|
routes: ["/haditha/about-us", "/haditha/contact-us"], // Pre-render these routes
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -6,14 +6,16 @@ import { useStorage } from "@vueuse/core";
|
||||||
// lsToken = "GuestAccess";
|
// lsToken = "GuestAccess";
|
||||||
|
|
||||||
export default defineNuxtPlugin((nuxtApp) => {
|
export default defineNuxtPlugin((nuxtApp) => {
|
||||||
|
const config = useRuntimeConfig();
|
||||||
|
|
||||||
// const { session } = useUserSession();
|
// const { session } = useUserSession();
|
||||||
// const authStore = useAuthStore();
|
// const authStore = useAuthStore();
|
||||||
let token = useStorage("id_token", "GuestAccess").value;
|
let token = useStorage("id_token", "GuestAccess").value;
|
||||||
const api = $fetch.create({
|
const api = $fetch.create({
|
||||||
onRequest({ request, options, error }) {
|
onRequest({ request, options, error }) {
|
||||||
options.baseURL =
|
options.baseURL =
|
||||||
import.meta.env.VITE_BASE_URL +
|
config.public.NUXT_PUBLIC_BASE_URL +
|
||||||
import.meta.env.NUXT_PUBLIC_API_NAME+
|
config.public.NUXT_PUBLIC_API_NAME +
|
||||||
options.baseURL;
|
options.baseURL;
|
||||||
|
|
||||||
if (token) {
|
if (token) {
|
||||||
|
|
BIN
public/img/haditha/background-1.webp
Normal file
After Width: | Height: | Size: 129 KiB |
Before Width: | Height: | Size: 490 KiB |
Before Width: | Height: | Size: 783 KiB |
BIN
public/img/haditha/background.webp
Normal file
After Width: | Height: | Size: 142 KiB |
Before Width: | Height: | Size: 263 KiB |
BIN
public/img/haditha/card-one-bgi.webp
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
public/img/haditha/card-one.webp
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
public/img/haditha/card-three-bgi.webp
Normal file
After Width: | Height: | Size: 59 KiB |
BIN
public/img/haditha/card-three.webp
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
public/img/haditha/card-two-bgi.webp
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
public/img/haditha/card-two.webp
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
public/img/haditha/location.webp
Normal file
After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 304 KiB |
BIN
public/img/haditha/logo.webp
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
public/img/haditha/modal-bottom-left-bgi.webp
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
public/img/haditha/modal-bttom-right-bgi.webp
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
public/img/haditha/modal-top-bgi.webp
Normal file
After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.2 MiB |
BIN
public/img/haditha/section-three-bgi.webp
Normal file
After Width: | Height: | Size: 88 KiB |
BIN
public/img/haditha/sub-header-bgi.webp
Normal file
After Width: | Height: | Size: 24 KiB |
|
@ -43,7 +43,7 @@ export default [
|
||||||
{
|
{
|
||||||
name: "hadithaContact",
|
name: "hadithaContact",
|
||||||
path: "/haditha/contact-us",
|
path: "/haditha/contact-us",
|
||||||
file: "~/systems/hadith_ui/pages/haditha/public-pages/ContactUs.vue",
|
file: "~/systems/hadith_ui/pages/haditha/public-pages/contactus.vue",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "hadithaRules",
|
name: "hadithaRules",
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit be90244a87e87eb66759bd10fabf5e881998b055
|
Subproject commit 74e556e300ec5cd6430c1ff286eb20e6e349ab47
|
|
@ -1 +1 @@
|
||||||
Subproject commit 29e3034e3fa2e28142ae58934b9bad4dc2ce98f4
|
Subproject commit 4745294ffc3af3b851dfcf43bca549986557a6f5
|
|
@ -169,6 +169,8 @@ export const copyToClipboard = async (
|
||||||
id = undefined,
|
id = undefined,
|
||||||
domainUrl = undefined
|
domainUrl = undefined
|
||||||
) => {
|
) => {
|
||||||
|
const toast = useToast();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const _id = id ? "/" + id : "";
|
const _id = id ? "/" + id : "";
|
||||||
let url = location.href;
|
let url = location.href;
|
||||||
|
@ -177,27 +179,37 @@ export const copyToClipboard = async (
|
||||||
}
|
}
|
||||||
await navigator.clipboard.writeText(url + _id);
|
await navigator.clipboard.writeText(url + _id);
|
||||||
|
|
||||||
mySwalToast({
|
toast.add({
|
||||||
html: "نشانی پیوند کپی شد.",
|
title: "انجام شد.",
|
||||||
|
description: "نشانی پیوند کپی شد.",
|
||||||
|
color: "success",
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(err.message);
|
console.log(err.message);
|
||||||
mySwalToast({
|
toast.add({
|
||||||
html: "خطایی رخ داد.لطفا دوباره امتحان کنید.",
|
title: "انجام شد.",
|
||||||
|
description: "خطایی رخ داد.لطفا دوباره امتحان کنید.",
|
||||||
|
color: "error",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
export const copyTextToClipboard = async (text) => {
|
export const copyTextToClipboard = async (text) => {
|
||||||
|
const toast = useToast();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await navigator.clipboard.writeText(text);
|
await navigator.clipboard.writeText(text);
|
||||||
|
|
||||||
mySwalToast({
|
toast.add({
|
||||||
html: "متن کپی شد.",
|
title: "انجام شد.",
|
||||||
|
description: "متن کپی شد.",
|
||||||
|
color: "success",
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(err.message);
|
console.log(err.message);
|
||||||
mySwalToast({
|
toast.add({
|
||||||
html: "خطایی رخ داد.لطفا دوباره امتحان کنید.",
|
title: "انجام شد.",
|
||||||
|
description: "خطایی رخ داد.لطفا دوباره امتحان کنید.",
|
||||||
|
color: "error",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|