Compare commits

6 Commits

Author SHA1 Message Date
morteza 3d12fe6c4d updat api url
deploy to danak / build_and_deploy (push) Has been cancelled
2026-07-01 22:24:40 +03:30
morteza ce10d3ea57 update api url
deploy to danak / build_and_deploy (push) Has been cancelled
2026-06-14 14:45:48 +03:30
morteza 0e2ce1210d remove tz
deploy to danak / build_and_deploy (push) Has been cancelled
2026-06-14 10:32:05 +03:30
hamid zarghami bba527c83f logo base url
deploy to danak / build_and_deploy (push) Has been cancelled
2026-02-24 14:36:13 +03:30
Mehdi Mehrmanesh 8bc5930bd6 add gitlab-ci file 2026-02-21 13:30:00 +03:30
hamid zarghami 38ffe6cd43 name and color 2026-02-21 10:14:46 +03:30
10 changed files with 40 additions and 65 deletions
+3 -5
View File
@@ -3,7 +3,7 @@ name: deploy to danak
on: on:
push: push:
branches: branches:
- master - shinan
jobs: jobs:
build_and_deploy: build_and_deploy:
@@ -11,10 +11,8 @@ jobs:
env: env:
DANAK_SERVER: "https://captain.dev.danakcorp.com" DANAK_SERVER: "https://captain.dev.danakcorp.com"
APP_TOKEN: 230cbe758f711c2b12099fce48ef8d4f2212ac6dc89cb300e92a9b8a45133669 APP_TOKEN: 9d1dd69b08c1d77b36092597316c44288126c57f217d87308130c98d764bf891
APP_NAME: shop APP_NAME: shinan
# APP_TOKEN: 111ac60c637716478be8ab8b888fd20baba808a10b0fc0c18bf788766883ec9e
# APP_NAME: e-commerce-front
GITHUB_TOKEN: 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 GITHUB_TOKEN: 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
steps: steps:
-45
View File
@@ -3,9 +3,6 @@
# ------------------------ # ------------------------
FROM node:22-alpine AS base FROM node:22-alpine AS base
RUN apk add --no-cache tzdata \
&& cp /usr/share/zoneinfo/Asia/Tehran /etc/localtime \
&& echo "Asia/Tehran" > /etc/timezone
WORKDIR /app WORKDIR /app
@@ -60,45 +57,3 @@ USER appuser
EXPOSE 3000 EXPOSE 3000
CMD ["node", "server.js"] CMD ["node", "server.js"]
# FROM node:22-alpine AS base
# RUN apk add --no-cache tzdata && \
# cp /usr/share/zoneinfo/Asia/Tehran /etc/localtime && \
# echo "Asia/Tehran" > /etc/timezone
# WORKDIR /app
# FROM base AS deps
# RUN apk add --no-cache libc6-compat git
# COPY package*.json ./
# RUN npm ci --only=production --ignore-scripts
# FROM base AS builder
# WORKDIR /build
# COPY --from=deps /app/node_modules ./node_modules
# COPY . .
# RUN npm run build && npm ci --only=production --ignore-scripts
# FROM base AS runner
# WORKDIR /app
# ENV NODE_ENV=production
# ENV NEXT_TELEMETRY_DISABLED=1
# RUN addgroup -S appgroup && adduser -S appuser -G appgroup
# RUN mkdir .next && chown appuser:appgroup .next
# COPY --from=builder --chown=appuser:appgroup /build/.next/standalone ./
# COPY --from=builder --chown=appuser:appgroup /build/.next/static ./.next/static
# COPY --from=builder --chown=appuser:appgroup /build/public ./public
# COPY --from=builder --chown=appuser:appgroup /build/package.json ./package.json
# USER appuser
# EXPOSE 3000
# ENV PORT=3000
# ENV HOSTNAME="0.0.0.0"
# CMD ["node", "server.js"]
File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 550 KiB

+1 -1
View File
@@ -52,7 +52,7 @@ const InvoicePage = () => {
<div className="flex items-center justify-between border-b pb-4 mb-6"> <div className="flex items-center justify-between border-b pb-4 mb-6">
<div> <div>
<Image <Image
src="/images/logo.png" src="/images/logo.svg"
alt="لوگو" alt="لوگو"
width={120} width={120}
height={40} height={40}
+1 -1
View File
@@ -173,7 +173,7 @@ body {
} }
@theme { @theme {
--color-border: #e5e5e5; --color-border: #e5e5e5;
--color-primary: #da2129; --color-primary: #a62186;
} }
html { html {
+1 -1
View File
@@ -66,7 +66,7 @@ const OrderInvoicePage = () => {
<div className="flex items-center justify-between border-b pb-4 mb-6"> <div className="flex items-center justify-between border-b pb-4 mb-6">
<div> <div>
<Image <Image
src="/images/logo.png" src="/images/logo.svg"
alt="لوگو" alt="لوگو"
width={120} width={120}
height={40} height={40}
+8 -8
View File
@@ -1,14 +1,14 @@
export const TOKEN_NAME = "sh_token"; export const TOKEN_NAME = "shinan_token";
export const REFRESH_TOKEN_NAME = "sh_refresh_token"; export const REFRESH_TOKEN_NAME = "shinan_refresh_token";
export const BASE_URL = "https://api.fajrtabloshop.com"; export const BASE_URL = "https://shinan-api.danakcorp.com";
// export const BASE_URL = "http://192.168.99.235:4000"; // export const BASE_URL = "http://192.168.99.235:4000";
export const PRIMARY_COLOR = "#DA2129"; export const PRIMARY_COLOR = "#a62186";
// تنظیمات فروشگاه // تنظیمات فروشگاه
export const SHOP_CONFIG = { export const SHOP_CONFIG = {
name: "تابلو مرکزی", // نام فروشگاه - می‌توان آن را تغییر داد name: "شینان", // نام فروشگاه - می‌توان آن را تغییر داد
fullName: "فجر تابلو مرکزی", // نام کامل فروشگاه fullName: "شینان", // نام کامل فروشگاه
englishName: "Fajr Tablo Center", // نام کامل فروشگاه به زبان انگلیسی englishName: "Shinan", // نام کامل فروشگاه به زبان انگلیسی
description: "فروشگاه آنلاین فجر تابلو مرکزی", // توضیحات فروشگاه description: "فروشگاه آنلاین شینان", // توضیحات فروشگاه
}; };
+1 -1
View File
@@ -20,7 +20,7 @@ const Footer: FC = () => {
width={100} width={100}
height={100} height={100}
alt='logo' alt='logo'
src={siteSetting?.results?.siteSetting?.siteLogo || '/images/logo.png'} src={siteSetting?.results?.siteSetting?.siteLogo || '/images/logo.svg'}
className='w-full h-auto max-h-20 max-w-20 object-contain' className='w-full h-auto max-h-20 max-w-20 object-contain'
/> />
</div> </div>
+2 -2
View File
@@ -34,7 +34,7 @@ const Header: FC = () => {
<div className='md:hidden flex items-center justify-between relative'> <div className='md:hidden flex items-center justify-between relative'>
<Link href='/' className='px-4 py-4'> <Link href='/' className='px-4 py-4'>
<Image <Image
src='/images/logo.png' src='/images/logo.svg'
alt='logo' alt='logo'
width={120} width={120}
height={50} height={50}
@@ -49,7 +49,7 @@ const Header: FC = () => {
<div className='flex gap-[30px] items-center'> <div className='flex gap-[30px] items-center'>
<Link href='/'> <Link href='/'>
<Image <Image
src='/images/logo.png' src='/images/logo.svg'
alt='logo' alt='logo'
width={100} width={100}
height={100} height={100}
+1 -1
View File
@@ -189,7 +189,7 @@ const CartItemCard = ({
const productImage = isOnline const productImage = isOnline
? (item as CartItemType).product.imagesUrl.cover ? (item as CartItemType).product.imagesUrl.cover
: (item as EnrichedOfflineCartItem).product?.imagesUrl?.cover || '/images/logo.png' : (item as EnrichedOfflineCartItem).product?.imagesUrl?.cover || '/images/logo.svg'
const productCategory = isOnline const productCategory = isOnline
? ((item as CartItemType).product.category?._id || 'دسته‌بندی') ? ((item as CartItemType).product.category?._id || 'دسته‌بندی')