update:add ci cd files ==> do not edit those file
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# editorconfig.org
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = tab
|
||||
indent_size = 2
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
@@ -0,0 +1,18 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
env: {
|
||||
browser: true,
|
||||
node: true
|
||||
},
|
||||
parserOptions: {
|
||||
parser: '@babel/eslint-parser',
|
||||
requireConfigFile: false
|
||||
},
|
||||
extends: ['@nuxtjs', 'plugin:nuxt/recommended'],
|
||||
plugins: [],
|
||||
// add your custom rules here
|
||||
rules: {
|
||||
'no-console': 'off',
|
||||
'arrow-parens': 'off'
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
name: deploy to danak
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build_and_deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
DANAK_SERVER: "https://captain.run.danakcorp.com"
|
||||
APP_TOKEN: f41d18a6e1205488886f89625d0649e5f2ec05354726f6b9370942de9068fb9c
|
||||
CAPROVER_APP_NAME: orisoxin
|
||||
GITHUB_TOKEN: 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
|
||||
|
||||
steps:
|
||||
- name: Check out repositorys
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: zmihamid
|
||||
password: ${{ env.GITHUB_TOKEN }}
|
||||
|
||||
- name: Preset Image Name
|
||||
run: echo "IMAGE_URL=$(echo ghcr.io/zmihamid/${{ github.event.repository.name }}:$(echo ${{ github.sha }} | cut -c1-7) | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
||||
|
||||
- name: Build and push Docker Image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: ${{ env.IMAGE_URL }}
|
||||
|
||||
- name: Install CapRover CLI
|
||||
run: npm install -g caprover
|
||||
|
||||
- name: deploy to server
|
||||
run: |
|
||||
caprover deploy -a $CAPROVER_APP_NAME -u $DANAK_SERVER --appToken $APP_TOKEN -i "$IMAGE_URL"
|
||||
+108
@@ -0,0 +1,108 @@
|
||||
# Created by .ignore support plugin (hsz.mobi)
|
||||
### Node template
|
||||
# Logs
|
||||
/logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
*.pid.lock
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
|
||||
# nyc test coverage
|
||||
.nyc_output
|
||||
|
||||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
||||
.grunt
|
||||
|
||||
# Bower dependency directory (https://bower.io/)
|
||||
bower_components
|
||||
|
||||
# node-waf configuration
|
||||
.lock-wscript
|
||||
|
||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
|
||||
# Dependency directories
|
||||
node_modules/
|
||||
jspm_packages/
|
||||
|
||||
# TypeScript v1 declaration files
|
||||
typings/
|
||||
|
||||
# Optional npm cache directory
|
||||
.npm
|
||||
|
||||
# Optional eslint cache
|
||||
.eslintcache
|
||||
|
||||
# Optional REPL history
|
||||
.node_repl_history
|
||||
|
||||
# Output of 'npm pack'
|
||||
*.tgz
|
||||
|
||||
# Yarn Integrity file
|
||||
.yarn-integrity
|
||||
|
||||
# dotenv environment variables file
|
||||
.env
|
||||
|
||||
# parcel-bundler cache (https://parceljs.org/)
|
||||
.cache
|
||||
|
||||
# next.js build output
|
||||
.next
|
||||
|
||||
# nuxt.js build output
|
||||
.nuxt
|
||||
.nuxt.zip
|
||||
./*.zip
|
||||
# Nuxt generate
|
||||
dist
|
||||
|
||||
# vuepress build output
|
||||
.vuepress/dist
|
||||
|
||||
# Serverless directories
|
||||
.serverless
|
||||
|
||||
# IDE / Editor
|
||||
.idea
|
||||
|
||||
# Service worker
|
||||
sw.*
|
||||
|
||||
# macOS
|
||||
.DS_Store
|
||||
|
||||
# Vim swap files
|
||||
*.swp
|
||||
|
||||
.vscode
|
||||
|
||||
|
||||
static/uploads/images/blog/*.jpg
|
||||
static/uploads/images/blog/thumb/*.jpg
|
||||
static/uploads/images/gallery/*.jpg
|
||||
static/uploads/images/projects/*.jpg
|
||||
static/uploads/images/team/*.jpg
|
||||
static/uploads/catalogs/cover/*.jpg
|
||||
static/uploads/catalogs/file/*.jpg
|
||||
static/uploads/catalogs/file/*.pdf
|
||||
static/uploads/catalogs/file/*.zip
|
||||
static/uploads/catalogs/file/*.rar
|
||||
static/uploads/catalogs/file/*.exe
|
||||
static/uploads/catalogs/file/*.txt
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"trailingComma": "none",
|
||||
"tabWidth": 2,
|
||||
"semi": false,
|
||||
"singleQuote": true,
|
||||
"tabs": false,
|
||||
"printWidth": 120
|
||||
}
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
FROM node:20-alpine AS base
|
||||
|
||||
RUN apk add --no-cache tzdata
|
||||
|
||||
# Set the timezone to Asia/Tehran
|
||||
RUN cp /usr/share/zoneinfo/Asia/Tehran /etc/localtime && echo "Asia/Tehran" > /etc/timezone
|
||||
|
||||
FROM base AS deps
|
||||
WORKDIR /temp-deps
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
FROM base AS builder
|
||||
WORKDIR /build
|
||||
COPY . ./
|
||||
COPY --from=deps /temp-deps/node_modules ./node_modules
|
||||
RUN npm run build
|
||||
RUN npm install --omit=dev
|
||||
|
||||
|
||||
FROM base AS runner
|
||||
WORKDIR /app
|
||||
ENV NUXT_TELEMETRY_DISABLED=1
|
||||
|
||||
|
||||
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
|
||||
RUN chown -R appuser:appgroup /app
|
||||
|
||||
# COPY --from=builder --chown=appuser:appgroup /build/.nuxt ./.nuxt
|
||||
# COPY --from=builder --chown=appuser:appgroup /build/static ./static
|
||||
# COPY --from=builder --chown=appuser:appgroup /build/package.json ./
|
||||
# COPY --from=builder --chown=appuser:appgroup /build/node_modules/ ./node_modules/
|
||||
COPY --from=builder --chown=appuser:appgroup /build ./
|
||||
|
||||
|
||||
USER appuser
|
||||
|
||||
# Set environment variables
|
||||
ENV NODE_ENV=production
|
||||
ENV PORT=3000
|
||||
ENV HOSTNAME="0.0.0.0"
|
||||
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
# Start the Nuxt 2 app
|
||||
CMD ["npm", "start"]
|
||||
@@ -0,0 +1,167 @@
|
||||
import {
|
||||
cibFacebook,
|
||||
cibTwitter,
|
||||
cibLinkedin,
|
||||
cibFlickr,
|
||||
cibTumblr,
|
||||
cibXing,
|
||||
cibGithub,
|
||||
cibStackoverflow,
|
||||
cibYoutube,
|
||||
cibDribbble,
|
||||
cibInstagram,
|
||||
cibPinterest,
|
||||
cibVk,
|
||||
cibYahoo,
|
||||
cibBehance,
|
||||
cibReddit,
|
||||
cibVimeo,
|
||||
cibCcMastercard,
|
||||
cibCcVisa,
|
||||
cibStripe,
|
||||
cibPaypal,
|
||||
cibGooglePay,
|
||||
cibCcAmex
|
||||
} from '@coreui/icons'
|
||||
import {
|
||||
cifUs,
|
||||
cifBr,
|
||||
cifIn,
|
||||
cifFr,
|
||||
cifEs,
|
||||
cifPl
|
||||
} from '@coreui/icons'
|
||||
import {
|
||||
cilArrowRight,
|
||||
cilBan,
|
||||
cilBasket,
|
||||
cilBell,
|
||||
cilCalculator,
|
||||
cilCalendar,
|
||||
cilCloudDownload,
|
||||
cilChartPie,
|
||||
cilCheck,
|
||||
cilChevronBottom,
|
||||
cilChevronTop,
|
||||
cilCheckCircle,
|
||||
cilCommentSquare,
|
||||
cilCursor,
|
||||
cilDrop,
|
||||
cilDollar,
|
||||
cilEnvelopeClosed,
|
||||
cilEnvelopeOpen,
|
||||
cilEuro,
|
||||
cilGlobeAlt,
|
||||
cilGrid,
|
||||
cilFile,
|
||||
cilJustifyCenter,
|
||||
cilLaptop,
|
||||
cilLayers,
|
||||
cilLightbulb,
|
||||
cilList,
|
||||
cilLocationPin,
|
||||
cilLockLocked,
|
||||
cilMagnifyingGlass,
|
||||
cilMoon,
|
||||
cilOptions,
|
||||
cilPencil,
|
||||
cilPeople,
|
||||
cilPuzzle,
|
||||
cilSettings,
|
||||
cilShieldAlt,
|
||||
cilSpeech,
|
||||
cilSpeedometer,
|
||||
cilStar,
|
||||
cilTask,
|
||||
cilUser,
|
||||
cilUserFemale,
|
||||
cilUserFollow,
|
||||
cilXCircle
|
||||
|
||||
} from '@coreui/icons'
|
||||
import { logo } from './logo'
|
||||
|
||||
export const iconsSet = Object.assign(
|
||||
{},
|
||||
{ logo },
|
||||
{
|
||||
cilArrowRight,
|
||||
cilBan,
|
||||
cilBasket,
|
||||
cilBell,
|
||||
cilCalculator,
|
||||
cilCalendar,
|
||||
cilCloudDownload,
|
||||
cilChartPie,
|
||||
cilCheck,
|
||||
cilChevronBottom,
|
||||
cilChevronTop,
|
||||
cilCheckCircle,
|
||||
cilCommentSquare,
|
||||
cilCursor,
|
||||
cilDrop,
|
||||
cilDollar,
|
||||
cilEnvelopeClosed,
|
||||
cilEnvelopeOpen,
|
||||
cilEuro,
|
||||
cilGlobeAlt,
|
||||
cilGrid,
|
||||
cilFile,
|
||||
cilJustifyCenter,
|
||||
cilLaptop,
|
||||
cilLayers,
|
||||
cilLightbulb,
|
||||
cilList,
|
||||
cilLocationPin,
|
||||
cilLockLocked,
|
||||
cilMagnifyingGlass,
|
||||
cilMoon,
|
||||
cilOptions,
|
||||
cilPencil,
|
||||
cilPeople,
|
||||
cilPuzzle,
|
||||
cilSettings,
|
||||
cilShieldAlt,
|
||||
cilSpeech,
|
||||
cilSpeedometer,
|
||||
cilStar,
|
||||
cilTask,
|
||||
cilUser,
|
||||
cilUserFemale,
|
||||
cilUserFollow,
|
||||
cilXCircle
|
||||
},
|
||||
{
|
||||
cifUs,
|
||||
cifBr,
|
||||
cifIn,
|
||||
cifFr,
|
||||
cifEs,
|
||||
cifPl
|
||||
},
|
||||
{
|
||||
cibFacebook,
|
||||
cibTwitter,
|
||||
cibLinkedin,
|
||||
cibFlickr,
|
||||
cibTumblr,
|
||||
cibXing,
|
||||
cibGithub,
|
||||
cibStackoverflow,
|
||||
cibYoutube,
|
||||
cibDribbble,
|
||||
cibInstagram,
|
||||
cibPinterest,
|
||||
cibVk,
|
||||
cibYahoo,
|
||||
cibBehance,
|
||||
cibReddit,
|
||||
cibVimeo,
|
||||
cibCcMastercard,
|
||||
cibCcVisa,
|
||||
cibStripe,
|
||||
cibPaypal,
|
||||
cibGooglePay,
|
||||
cibCcAmex
|
||||
}
|
||||
)
|
||||
@@ -0,0 +1,29 @@
|
||||
// Example of SVG converted to js array, so it can be used with CIcon.
|
||||
// the first argument is two last values of svg viewBox,
|
||||
// the second argument is the SVG content stripped of SVG tags
|
||||
export const logo = ['556 134',`
|
||||
<g>
|
||||
<g style="fill:#1bbd93;">
|
||||
<path d="M347.9818,90.0869l-11.84-43.52-.0644-.1924q0-.5112.6406-.5117h1.2793a.66.66,0,0,1,.7051.5762l10.623,39.68c.042.0859.0859.1279.1289.1279.041,0,.084-.042.127-.1279l10.625-39.68a.657.657,0,0,1,.7031-.5762h1.2168a.54.54,0,0,1,.5762.7041l-11.9043,43.52a.6584.6584,0,0,1-.7041.5761h-1.4082A.6577.6577,0,0,1,347.9818,90.0869Z"/>
|
||||
<path d="M382.2786,89.5751a10.9023,10.9023,0,0,1-4.3515-4.5439,14.4586,14.4586,0,0,1-1.5362-6.7842V46.5029a.5656.5656,0,0,1,.64-.64h1.2168a.5659.5659,0,0,1,.64.64v32a10.5488,10.5488,0,0,0,2.72,7.5527,10.36,10.36,0,0,0,14.3359,0,10.5493,10.5493,0,0,0,2.7207-7.5527v-32a.5655.5655,0,0,1,.64-.64h1.2159a.5666.5666,0,0,1,.6406.64V78.247a13.01,13.01,0,0,1-3.3926,9.376,11.8974,11.8974,0,0,1-9.0234,3.5527A12.8481,12.8481,0,0,1,382.2786,89.5751Z"/>
|
||||
<path d="M439.5843,48.1035H419.5521a.2263.2263,0,0,0-.2559.2558V66.8554a.2259.2259,0,0,0,.2559.2559h13.8242a.5665.5665,0,0,1,.6406.64v.96a.5665.5665,0,0,1-.6406.6406H419.5521a.2263.2263,0,0,0-.2559.2559v18.56a.2259.2259,0,0,0,.2559.2559h20.0322a.5665.5665,0,0,1,.64.6406v.96a.5655.5655,0,0,1-.64.64H417.4407a.5654.5654,0,0,1-.6406-.64v-43.52a.5658.5658,0,0,1,.6406-.64h22.1436a.5659.5659,0,0,1,.64.64v.96A.5658.5658,0,0,1,439.5843,48.1035Z"/>
|
||||
<path d="M454.5921,89.5117a2.8385,2.8385,0,0,1-.8-2.0489,2.9193,2.9193,0,0,1,.8-2.1113,2.7518,2.7518,0,0,1,2.0791-.832,2.8465,2.8465,0,0,1,2.9443,2.9433,2.7561,2.7561,0,0,1-.832,2.08,2.9208,2.9208,0,0,1-2.1123.8008A2.7521,2.7521,0,0,1,454.5921,89.5117Z"/>
|
||||
<path d="M474.931,88.0078a11.3087,11.3087,0,0,1-3.2-8.4161v-5.44a.5655.5655,0,0,1,.64-.64h1.2158a.5662.5662,0,0,1,.6407.64v5.5039a9.1421,9.1421,0,0,0,2.5283,6.72,8.9734,8.9734,0,0,0,6.6875,2.5606,8.7916,8.7916,0,0,0,9.28-9.28V46.5029a.5655.5655,0,0,1,.64-.64h1.2158a.5656.5656,0,0,1,.64.64V79.5917a11.2541,11.2541,0,0,1-3.2315,8.4161,13.0621,13.0621,0,0,1-17.0556,0Z"/>
|
||||
<path d="M512.8753,88.1035a10.4847,10.4847,0,0,1-3.36-8.128v-1.792a.5665.5665,0,0,1,.6406-.6406h1.0879a.5666.5666,0,0,1,.64.6406v1.6a8.5461,8.5461,0,0,0,2.752,6.6563,10.5361,10.5361,0,0,0,7.36,2.4961,9.8741,9.8741,0,0,0,6.9766-2.3682,8.2188,8.2188,0,0,0,2.56-6.3359,8.3952,8.3952,0,0,0-1.12-4.416,11.3752,11.3752,0,0,0-3.3281-3.3926,71.6866,71.6866,0,0,0-6.1758-3.7119,71.0151,71.0151,0,0,1-6.24-3.84,12.1824,12.1824,0,0,1-3.4238-3.68,10.2659,10.2659,0,0,1-1.28-5.3437,9.86,9.86,0,0,1,3.0723-7.7441,12.0126,12.0126,0,0,1,8.3193-2.752q5.6969,0,8.9609,3.1035a10.8247,10.8247,0,0,1,3.2637,8.2246v1.6a.5658.5658,0,0,1-.6406.64h-1.1514a.5651.5651,0,0,1-.64-.64V56.8076a8.8643,8.8643,0,0,0-2.6241-6.6885,9.9936,9.9936,0,0,0-7.2324-2.5274,9.37,9.37,0,0,0-6.5283,2.1436,7.8253,7.8253,0,0,0-2.3672,6.1123,7.8088,7.8088,0,0,0,1.0235,4.16,10.3978,10.3978,0,0,0,3.0078,3.039,63.0249,63.0249,0,0,0,5.9521,3.4883,70.7955,70.7955,0,0,1,6.72,4.2559,13.4613,13.4613,0,0,1,3.6485,3.9365,10.044,10.044,0,0,1,1.28,5.1836,10.7185,10.7185,0,0,1-3.2647,8.1924q-3.2637,3.0717-8.832,3.0722Q516.2342,91.1757,512.8753,88.1035Z"/>
|
||||
</g>
|
||||
<g style="fill:currentColor;">
|
||||
<g>
|
||||
<path d="M99.367,36.0577l-39-22.5167a12,12,0,0,0-12,0l-39,22.5166a12.0337,12.0337,0,0,0-6,10.3924V91.4833a12.0331,12.0331,0,0,0,6,10.3923l39,22.5167a12,12,0,0,0,12,0l39-22.5167a12.0333,12.0333,0,0,0,6-10.3923V46.45A12.0336,12.0336,0,0,0,99.367,36.0577Zm-2,55.4256a4,4,0,0,1-2,3.4641l-39,22.5167a4.0006,4.0006,0,0,1-4,0l-39-22.5167a4,4,0,0,1-2-3.4641V46.45a4,4,0,0,1,2-3.4642l39-22.5166a4,4,0,0,1,4,0l39,22.5166a4,4,0,0,1,2,3.4642Z"/>
|
||||
<path d="M77.3886,82.0046h-2.866a4.0007,4.0007,0,0,0-1.9247.4934L55.3172,91.9833,35.367,80.4648V57.4872l19.95-11.5185L72.606,55.4236a3.9993,3.9993,0,0,0,1.9192.4906h2.8632a2,2,0,0,0,2-2V51.2024a2,2,0,0,0-1.04-1.7547L59.16,38.9521a8.0389,8.0389,0,0,0-7.8427.09L31.3665,50.56a8.0245,8.0245,0,0,0-3.9995,6.9287v22.976a8,8,0,0,0,4,6.9283l19.95,11.5186a8.0427,8.0427,0,0,0,7.8432.0879l19.19-10.5312a2,2,0,0,0,1.0378-1.7533v-2.71A2,2,0,0,0,77.3886,82.0046Z"/>
|
||||
</g>
|
||||
<g>
|
||||
<path d="M172.1117,45.3618a15.0166,15.0166,0,0,0-15,14.9995V77.6387a15,15,0,0,0,30,0V60.3613A15.0167,15.0167,0,0,0,172.1117,45.3618Zm7,32.2769a7,7,0,0,1-14,0V60.3613a7,7,0,0,1,14,0Z"/>
|
||||
<path d="M135.4458,53.4211a7.01,7.01,0,0,1,7.8681,6.0752.9892.9892,0,0,0,.9842.865h6.03a1.0108,1.0108,0,0,0,.9987-1.0971,15.0182,15.0182,0,0,0-15.7161-13.8837A15.2881,15.2881,0,0,0,121.367,60.7968V77.2037A15.288,15.288,0,0,0,135.6112,92.62a15.0182,15.0182,0,0,0,15.7161-13.8842,1.0107,1.0107,0,0,0-.9987-1.0971h-6.03a.9892.9892,0,0,0-.9842.865,7.0106,7.0106,0,0,1-7.868,6.0757,7.1642,7.1642,0,0,1-6.0789-7.1849V60.6057A7.1638,7.1638,0,0,1,135.4458,53.4211Z"/>
|
||||
<path d="M218.2891,72.9277a12.1584,12.1584,0,0,0,7.1843-11.0771V58.1494A12.1494,12.1494,0,0,0,213.324,46H196.367a1,1,0,0,0-1,1V91a1,1,0,0,0,1,1h6a1,1,0,0,0,1-1V74h6.6215l7.9154,17.4138a1,1,0,0,0,.91.5862h6.5912a1,1,0,0,0,.91-1.4138Zm-.8157-11.0771A4.1538,4.1538,0,0,1,213.3245,66h-9.8511V54h9.8511a4.1538,4.1538,0,0,1,4.1489,4.1494Z"/>
|
||||
<path d="M260.367,46h-26a1,1,0,0,0-1,1V91a1,1,0,0,0,1,1h26a1,1,0,0,0,1-1V85a1,1,0,0,0-1-1h-19V72h13a1,1,0,0,0,1-1V65a1,1,0,0,0-1-1h-13V54h19a1,1,0,0,0,1-1V47A1,1,0,0,0,260.367,46Z"/>
|
||||
<path d="M298.367,46h-6a1,1,0,0,0-1,1V69.6475a7.0066,7.0066,0,1,1-14,0V47a1,1,0,0,0-1-1h-6a1,1,0,0,0-1,1V69.6475a15.0031,15.0031,0,1,0,30,0V47A1,1,0,0,0,298.367,46Z"/>
|
||||
<rect x="307.367" y="46" width="8" height="38" rx="1"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
`]
|
||||
@@ -0,0 +1,72 @@
|
||||
// Here you can add other styles
|
||||
.copy-right {
|
||||
direction: ltr !important;
|
||||
|
||||
.company {
|
||||
color: #872071;
|
||||
font-weight: bold;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
color: #872071;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pre {
|
||||
background: #000 !important;
|
||||
color: green !important;
|
||||
direction: ltr !important;
|
||||
text-align: left !important;
|
||||
padding: 20px !important;
|
||||
font-size: 20px !important;
|
||||
}
|
||||
|
||||
.c-app {
|
||||
.custom-subheader {
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
position: fixed;
|
||||
top: $header-height;
|
||||
left: 0;
|
||||
z-index: 10;
|
||||
transition: width $layout-transition-speed;
|
||||
-webkit-transition: width $layout-transition-speed;
|
||||
-moz-transition: width $layout-transition-speed;
|
||||
-ms-transition: width $layout-transition-speed;
|
||||
-o-transition: width $layout-transition-speed;
|
||||
|
||||
&.sideBarFull {
|
||||
width: calc(100% - #{$sidebar-width});
|
||||
}
|
||||
|
||||
&.sideBarMinimized {
|
||||
width: calc(100% - #{$sidebar-minimized-width});
|
||||
}
|
||||
|
||||
&.sideBarClose {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@media (max-width: 992px) {
|
||||
width: 100% !important;
|
||||
}
|
||||
}
|
||||
|
||||
.form-group {
|
||||
&.err {
|
||||
.col-form-label {
|
||||
color: red !important;
|
||||
}
|
||||
|
||||
.form-control {
|
||||
border-color: red !important;
|
||||
}
|
||||
|
||||
.form-text {
|
||||
color: red !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,172 @@
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////// element ui rtl fix
|
||||
html:lang(fa) {
|
||||
.el-tag {
|
||||
/*margin-bottom: 10px!important;*/
|
||||
}
|
||||
|
||||
.text-area {
|
||||
textarea {
|
||||
height: 100px;
|
||||
}
|
||||
}
|
||||
|
||||
.el-popup-parent--hidden {
|
||||
padding-right: 0 !important;
|
||||
}
|
||||
|
||||
.el-tag .el-icon-close {
|
||||
right: auto !important;
|
||||
left: -5px !important;
|
||||
}
|
||||
|
||||
.el-table .el-table__body-wrapper .el-table__row .is-left {
|
||||
text-align: left !important;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.el-form-item__label {
|
||||
float: right !important;
|
||||
text-align: right !important;
|
||||
}
|
||||
|
||||
.el-form-item__content {
|
||||
margin-left: 0 !important;
|
||||
margin-right: 120px !important;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.el-form-item__content {
|
||||
margin-left: 0 !important;
|
||||
margin-right: 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
.secondTitle {
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
.el-upload__input {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.el-message-box__title, .el-message-box__message {
|
||||
direction: rtl !important;
|
||||
text-align: right !important;
|
||||
}
|
||||
|
||||
.el-message-box__message {
|
||||
padding-left: 12px !important;
|
||||
padding-right: 36px !important;
|
||||
}
|
||||
|
||||
.el-message-box__btns {
|
||||
text-align: left !important;
|
||||
}
|
||||
|
||||
.el-message-box__headerbtn {
|
||||
right: auto !important;
|
||||
left: 15px !important;
|
||||
}
|
||||
|
||||
.el-message-box__btns button:nth-child(2) {
|
||||
margin-left: 0 !important;
|
||||
margin-right: 10px !important;
|
||||
}
|
||||
|
||||
.el-message-box__status {
|
||||
right: 0 !important;
|
||||
}
|
||||
|
||||
.el-table td, .el-table th {
|
||||
text-align: right !important;
|
||||
}
|
||||
|
||||
.el-upload__input {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.el-checkbox__label {
|
||||
padding-left: 0 !important;
|
||||
padding-right: 10px !important;
|
||||
}
|
||||
|
||||
.el-message__icon {
|
||||
margin-right: 0 !important;
|
||||
margin-left: 10px !important;
|
||||
}
|
||||
|
||||
.sidebar-subnav {
|
||||
background: rgba(0, 0, 0, 0.05) !important;
|
||||
}
|
||||
|
||||
.sidebar > .nav > li {
|
||||
border-bottom: 1px solid #eee !important;
|
||||
}
|
||||
|
||||
.brand-logo p {
|
||||
margin-top: 6px !important;
|
||||
}
|
||||
|
||||
.brand-logo-collapsed svg {
|
||||
fill: #fff !important;
|
||||
}
|
||||
|
||||
.nav-floating {
|
||||
background: #fff !important;
|
||||
}
|
||||
|
||||
.el-dialog__headerbtn {
|
||||
right: auto !important;
|
||||
left: 20px !important;
|
||||
}
|
||||
|
||||
.el-radio__label {
|
||||
padding-right: 10px !important;
|
||||
}
|
||||
|
||||
.el-scrollbar__wrap {
|
||||
margin-right: 0 !important;
|
||||
margin-left: -17px !important;
|
||||
}
|
||||
|
||||
.el-select-dropdown.is-multiple .el-select-dropdown__item.selected::after {
|
||||
right: auto;
|
||||
left: 20px;
|
||||
}
|
||||
|
||||
.el-select .el-tag {
|
||||
margin: 2px 6px 2px 0;
|
||||
}
|
||||
|
||||
.avatar-uploader{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.avatar-uploader .el-upload{
|
||||
background-color: #fff;
|
||||
border: 1px dashed #d9d9d9;
|
||||
border-radius: 6px;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: 300px;
|
||||
text-align: center;
|
||||
justify-content: center;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.avatar-uploader .el-upload:hover {
|
||||
border-color: #409EFF;
|
||||
}
|
||||
.avatar-uploader-icon {
|
||||
font-size: 28px;
|
||||
color: #8c939d;
|
||||
}
|
||||
.avatar {
|
||||
width: 100%;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
// Variable overrides
|
||||
$gray-base: #1a1e24;
|
||||
@@ -0,0 +1,18 @@
|
||||
// If you want to override variables do it here
|
||||
@import "variables";
|
||||
|
||||
// Import styles
|
||||
@import "~@coreui/coreui/scss/coreui";
|
||||
|
||||
// If you want to add something do it here
|
||||
@import "custom";
|
||||
@import "el_ui_rtl";
|
||||
|
||||
.card-header:not(.content-center) > .c-icon:first-child {
|
||||
margin-right: 0.1rem;
|
||||
margin-top: 0.1rem;
|
||||
vertical-align: top;
|
||||
width: 1.2rem;
|
||||
height: 1.2rem;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
.ck-content {
|
||||
width: 100%;
|
||||
direction: rtl;
|
||||
text-align: right;
|
||||
|
||||
&:lang(en) {
|
||||
direction: ltr;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
a {
|
||||
display: inline-block;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
p, a, span, b, ul, li, em, h1, h2, h3, h4, h5, h6, strong {
|
||||
font-family: inherit, sans-serif;
|
||||
direction: unset;
|
||||
text-align: unset;
|
||||
|
||||
&:lang(en) {
|
||||
font-family: inherit;
|
||||
direction: unset;
|
||||
text-align: unset;
|
||||
}
|
||||
|
||||
&[dir="ltr"] {
|
||||
direction: ltr;
|
||||
text-align: left;
|
||||
|
||||
p, a, span, b, ul, li, em, h1, h2, h3, h4, h5, h6, strong {
|
||||
direction: ltr;
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
&[dir="rtl"] {
|
||||
direction: rtl;
|
||||
text-align: justify;
|
||||
|
||||
p, a, span, b, ul, li, em, h1, h2, h3, h4, h5, h6, strong {
|
||||
direction: rtl;
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: 1.6em;
|
||||
}
|
||||
|
||||
//h1, h2, h3, h4, h5, h6 {
|
||||
// line-height: 1.3em;
|
||||
//}
|
||||
|
||||
li {
|
||||
margin-bottom: 15px;
|
||||
line-height: 1.6em;
|
||||
}
|
||||
|
||||
ol {
|
||||
list-style: decimal;
|
||||
list-style-position: inside;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: disc;
|
||||
list-style-position: inside;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%!important;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,167 @@
|
||||
html:lang(fa) {
|
||||
|
||||
.text-area {
|
||||
textarea {
|
||||
height: 100px;
|
||||
}
|
||||
}
|
||||
|
||||
.el-popup-parent--hidden {
|
||||
padding-right: 0 !important;
|
||||
}
|
||||
|
||||
.el-tag .el-icon-close {
|
||||
right: auto !important;
|
||||
left: -5px !important;
|
||||
}
|
||||
|
||||
.el-table .el-table__body-wrapper .el-table__row .is-left {
|
||||
text-align: left !important;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.el-form-item__label {
|
||||
float: right !important;
|
||||
text-align: right !important;
|
||||
}
|
||||
|
||||
.el-form-item__content {
|
||||
margin-left: 0 !important;
|
||||
margin-right: 120px !important;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.el-form-item__content {
|
||||
margin-left: 0 !important;
|
||||
margin-right: 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
.secondTitle {
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
.el-upload__input {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.el-message-box__title, .el-message-box__message {
|
||||
direction: rtl !important;
|
||||
text-align: right !important;
|
||||
}
|
||||
|
||||
.el-message-box__message {
|
||||
padding-left: 12px !important;
|
||||
padding-right: 36px !important;
|
||||
}
|
||||
|
||||
.el-message-box__btns {
|
||||
text-align: left !important;
|
||||
}
|
||||
|
||||
.el-message-box__headerbtn {
|
||||
right: auto !important;
|
||||
left: 15px !important;
|
||||
}
|
||||
|
||||
.el-message-box__btns button:nth-child(2) {
|
||||
margin-left: 0 !important;
|
||||
margin-right: 10px !important;
|
||||
}
|
||||
|
||||
.el-message-box__status {
|
||||
right: 0 !important;
|
||||
}
|
||||
|
||||
.el-table td, .el-table th {
|
||||
text-align: right !important;
|
||||
}
|
||||
|
||||
.el-upload__input {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.el-checkbox__label {
|
||||
padding-left: 0 !important;
|
||||
padding-right: 10px !important;
|
||||
}
|
||||
|
||||
.el-message__icon {
|
||||
margin-right: 0 !important;
|
||||
margin-left: 10px !important;
|
||||
}
|
||||
|
||||
.sidebar-subnav {
|
||||
background: rgba(0, 0, 0, 0.05) !important;
|
||||
}
|
||||
|
||||
.sidebar > .nav > li {
|
||||
border-bottom: 1px solid #eee !important;
|
||||
}
|
||||
|
||||
.brand-logo p {
|
||||
margin-top: 6px !important;
|
||||
}
|
||||
|
||||
.brand-logo-collapsed svg {
|
||||
fill: #fff !important;
|
||||
}
|
||||
|
||||
.nav-floating {
|
||||
background: #fff !important;
|
||||
}
|
||||
|
||||
.el-dialog__headerbtn {
|
||||
right: auto !important;
|
||||
left: 20px !important;
|
||||
}
|
||||
|
||||
.el-radio__label {
|
||||
padding-right: 10px !important;
|
||||
}
|
||||
|
||||
.el-scrollbar__wrap {
|
||||
margin-right: 0 !important;
|
||||
margin-left: -17px !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.el-input-number__decrease{
|
||||
height: 95%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@extend %defaultTransition;
|
||||
&:hover{
|
||||
background: $red;
|
||||
color: $themeReverse;
|
||||
}
|
||||
}
|
||||
|
||||
.el-input-number__increase{
|
||||
height: 95%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@extend %defaultTransition;
|
||||
&:hover{
|
||||
background: $red;
|
||||
color: $themeReverse;
|
||||
}
|
||||
}
|
||||
|
||||
.el-input--medium .el-input__inner{
|
||||
font-family: 'dubaiM', sans-serif;
|
||||
}
|
||||
|
||||
.el-input-number__decrease:hover:not(.is-disabled)~.el-input .el-input__inner:not(.is-disabled), .el-input-number__increase:hover:not(.is-disabled)~.el-input .el-input__inner:not(.is-disabled){
|
||||
border-color: rgba(255, 0, 0, 0);
|
||||
}
|
||||
|
||||
// .home-Page .row {
|
||||
// --bs-gutter-x: 0;
|
||||
// }
|
||||
@@ -0,0 +1,41 @@
|
||||
%defaultTransition {
|
||||
@include transition(0.3s);
|
||||
}
|
||||
|
||||
%userSelect {
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
}
|
||||
|
||||
%appearance {
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
}
|
||||
|
||||
%defaultBoxShadow {
|
||||
@include boxShadow(0 5px 8px rgba(0, 0, 0, 0.2))
|
||||
}
|
||||
|
||||
%formStyles {
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
direction: rtl;
|
||||
font-family: 'sahel';
|
||||
border: 1px solid transparent;
|
||||
background: #fff;
|
||||
@include borderRadius(2px);
|
||||
}
|
||||
|
||||
%maxHeightText {
|
||||
display: block;
|
||||
text-overflow: ellipsis;
|
||||
word-wrap: break-word;
|
||||
overflow: hidden;
|
||||
|
||||
//line-height: 1.2em;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
////////////////////////////////////////// dubai
|
||||
|
||||
// dubai-light
|
||||
@font-face {
|
||||
font-family: "dubaiL";
|
||||
src: url("/fonts/dubai-font-webfonts/light/Dubai-Light.eot?#iefix") format("embedded-opentype"),
|
||||
url("/fonts/dubai-font-webfonts/light/Dubai-Light.woff") format("woff"),
|
||||
url("/fonts/dubai-font-webfonts/light/Dubai-Light.ttf") format("truetype");
|
||||
}
|
||||
|
||||
// dubai-medium
|
||||
@font-face {
|
||||
font-family: "dubaiM";
|
||||
src: url("/fonts/dubai-font-webfonts/medium/Dubai-Medium.eot?#iefix") format("embedded-opentype"),
|
||||
url("/fonts/dubai-font-webfonts/medium/Dubai-Medium.woff") format("woff"),
|
||||
url("/fonts/dubai-font-webfonts/medium/Dubai-Medium.ttf") format("truetype");
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////// Geometria
|
||||
|
||||
// geometria
|
||||
@font-face {
|
||||
font-family: "geometria";
|
||||
src: url("/fonts/geometria-webfonts/Geometria.woff") format("woff");
|
||||
}
|
||||
|
||||
// geometria-bold
|
||||
@font-face {
|
||||
font-family: "geometriaBold";
|
||||
src: url("/fonts/geometria-webfonts/Geometria-Bold.woff") format("woff");
|
||||
}
|
||||
|
||||
// geometria-extra-bold
|
||||
@font-face {
|
||||
font-family: "geometriaExtraBold";
|
||||
src: url("/fonts/geometria-webfonts/Geometria-ExtraBold.woff") format("woff");
|
||||
}
|
||||
|
||||
// geometria-Medium
|
||||
@font-face {
|
||||
font-family: "geometriaMedium";
|
||||
src: url("/fonts/geometria-webfonts/Geometria-Medium.woff") format("woff");
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////// Silka
|
||||
|
||||
// silka bold
|
||||
@font-face {
|
||||
font-family: "silkaBold";
|
||||
src: url("/fonts/silka-webfont/silka-semibold-webfont.ttf") format("woff");
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,45 @@
|
||||
@mixin transform($p...) {
|
||||
transform: $p;
|
||||
-webkit-transform: $p;
|
||||
-moz-transform: $p;
|
||||
-ms-transform: $p;
|
||||
-o-transform: $p;
|
||||
}
|
||||
|
||||
@mixin transition($p...) {
|
||||
transition: $p;
|
||||
-webkit-transition: $p;
|
||||
-moz-transition: $p;
|
||||
-ms-transition: $p;
|
||||
-o-transition: $p;
|
||||
}
|
||||
|
||||
@mixin boxSizing($p) {
|
||||
box-sizing: $p;
|
||||
-webkit-box-sizing: $p;
|
||||
-moz-box-sizing: $p;
|
||||
}
|
||||
|
||||
@mixin filter($p...) {
|
||||
filter: $p;
|
||||
-ms-filter: $p;
|
||||
}
|
||||
|
||||
@mixin boxShadow($p) {
|
||||
box-shadow: $p;
|
||||
-webkit-box-shadow: $p;
|
||||
-moz-box-shadow: $p;
|
||||
}
|
||||
|
||||
@mixin borderRadius($p) {
|
||||
border-radius: $p;
|
||||
-webkit-border-radius: $p;
|
||||
-moz-border-radius: $p;
|
||||
}
|
||||
|
||||
@mixin animation($p) {
|
||||
animation: $p;
|
||||
-webkit-animation: $p;
|
||||
-o-animation: $p;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,220 @@
|
||||
body {
|
||||
-webkit-print-color-adjust: exact !important;
|
||||
}
|
||||
|
||||
@page {
|
||||
size: landscape !important;
|
||||
}
|
||||
|
||||
#box-face-receipt {
|
||||
padding: 20px;
|
||||
|
||||
.receipt-body {
|
||||
border: 1px solid rgba(#000, 1);
|
||||
padding: 15px;
|
||||
|
||||
.infoRow {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.topLeft {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
padding: 10px;
|
||||
flex-basis: 300px;
|
||||
|
||||
&:first-child {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
b, span {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
b {
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.receiverInfo {
|
||||
.topLeft {
|
||||
background: transparent;
|
||||
justify-content: flex-end;
|
||||
align-items: flex-start;
|
||||
|
||||
svg {
|
||||
width: 200px;
|
||||
|
||||
path, rect {
|
||||
fill: #000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#box-inner-receipt {
|
||||
padding: 20px;
|
||||
|
||||
.receipt-body {
|
||||
border: 1px solid rgba(#000, 1);
|
||||
padding: 15px;
|
||||
|
||||
.topBar {
|
||||
margin-bottom: 30px;
|
||||
|
||||
svg {
|
||||
width: 200px;
|
||||
|
||||
path, rect {
|
||||
fill: #000;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.topLeft {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
padding: 10px;
|
||||
flex-basis: 300px;
|
||||
|
||||
&:first-child {
|
||||
margin-left: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.stuff-list {
|
||||
margin-bottom: 30px !important;
|
||||
|
||||
@media print {
|
||||
.notice {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100% !important;
|
||||
|
||||
thead {
|
||||
tr {
|
||||
background: rgba(0, 0, 0, 0.7) !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
}
|
||||
|
||||
tr {
|
||||
background-color: #E0E6ED !important;
|
||||
|
||||
&.odd {
|
||||
background-color: #8A92A9 !important;
|
||||
}
|
||||
|
||||
td, th {
|
||||
padding: 10px !important;
|
||||
text-align: center !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#factor-layout {
|
||||
border: 1px dashed #000;
|
||||
padding: 10px;
|
||||
margin-bottom: 30px;
|
||||
|
||||
span, p {
|
||||
font-family: 'iranYekanR', sans-serif;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.pageHeader {
|
||||
margin-bottom: 10px;
|
||||
|
||||
.row1 {
|
||||
h2 {
|
||||
text-align: center;
|
||||
font-family: 'iranYekanB';
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
.row2 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
|
||||
p {
|
||||
width: 200px;
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.factor {
|
||||
width: 100%;
|
||||
border: 1px solid #000;
|
||||
|
||||
|
||||
.factorInfo {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 10px;
|
||||
|
||||
p {
|
||||
text-align: right;
|
||||
padding: 10px 0;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.row1 {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
|
||||
p {
|
||||
flex-basis: 33.33%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
|
||||
thead {
|
||||
tr {
|
||||
th {
|
||||
background: rgba(#000, 0.1);
|
||||
text-align: center;
|
||||
border: 1px solid #000;
|
||||
padding: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tbody {
|
||||
tr {
|
||||
td, th {
|
||||
text-align: center;
|
||||
border: 1px solid #000;
|
||||
padding: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
////// colors
|
||||
$theme: #000;
|
||||
$themeTransparent: transparent;
|
||||
$themeSecond: #191919;
|
||||
$themeReverse: #fff;
|
||||
$themeTxtColorBlack: #000;
|
||||
$themeTxtColorWhite: #fff;
|
||||
$themeTxtColorGreen: #87BF00;
|
||||
$red: #ed1d24;
|
||||
|
||||
|
||||
////////// linear-gradient
|
||||
$dimmer: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
|
||||
|
||||
|
||||
////// sizes
|
||||
$headerMainNavHeight: 60px;
|
||||
|
||||
$bigTitle: 50px;
|
||||
$h1: 38px;
|
||||
$h2: 30px;
|
||||
$h3: 24px;
|
||||
$h4: 22px;
|
||||
$h5: 20px;
|
||||
$h6: 18px;
|
||||
$span: 13px;
|
||||
|
||||
|
||||
$sizeHeader: 35vh
|
||||
@@ -0,0 +1,9 @@
|
||||
@import "variables";
|
||||
@import "mixins";
|
||||
@import "extentions";
|
||||
@import "fonts";
|
||||
@import "globalStyles";
|
||||
@import "pages";
|
||||
@import "CKEditorStyle";
|
||||
@import "el_ui_rtl";
|
||||
@import "printStyles";
|
||||
@@ -0,0 +1,18 @@
|
||||
<template>
|
||||
<div class="btn form-btn">
|
||||
<button :type="buttonType">{{ label }}</button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
label: {
|
||||
required: true
|
||||
},
|
||||
buttonType: {
|
||||
required: true
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,29 @@
|
||||
<template>
|
||||
<svg class="NuxtLogo" width="245" height="180" viewBox="0 0 452 342" xmlns="http://www.w3.org/2000/svg">
|
||||
<path
|
||||
d="M139 330l-1-2c-2-4-2-8-1-13H29L189 31l67 121 22-16-67-121c-1-2-9-14-22-14-6 0-15 2-22 15L5 303c-1 3-8 16-2 27 4 6 10 12 24 12h136c-14 0-21-6-24-12z"
|
||||
fill="#00C58E"
|
||||
/>
|
||||
<path
|
||||
d="M447 304L317 70c-2-2-9-15-22-15-6 0-15 3-22 15l-17 28v54l39-67 129 230h-49a23 23 0 0 1-2 14l-1 1c-6 11-21 12-23 12h76c3 0 17-1 24-12 3-5 5-14-2-26z"
|
||||
fill="#108775"
|
||||
/>
|
||||
<path
|
||||
d="M376 330v-1l1-2c1-4 2-8 1-12l-4-12-102-178-15-27h-1l-15 27-102 178-4 12a24 24 0 0 0 2 15c4 6 10 12 24 12h190c3 0 18-1 25-12zM256 152l93 163H163l93-163z"
|
||||
fill="#2F495E"
|
||||
/>
|
||||
</svg>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
.NuxtLogo {
|
||||
animation: 1s appear;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
@keyframes appear {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,8 @@
|
||||
<template>
|
||||
<footer class="pwa-footer">
|
||||
<p style="color: white; text-align: center">
|
||||
<span>Design and developed by</span>
|
||||
<a href="https://negarehagency.com">NegarehAgency</a>
|
||||
</p>
|
||||
</footer>
|
||||
</template>
|
||||
@@ -0,0 +1,41 @@
|
||||
<template>
|
||||
<div class="pageLoad">
|
||||
<div class="relativePos">
|
||||
<div class="imgBox">
|
||||
<!-- <img src="/img/logo.svg" alt="OrisOxin">-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
mounted() {
|
||||
this.$router.beforeEach((to, from, next) => {
|
||||
this.$gsap.timeline({
|
||||
onComplete: () => {
|
||||
next()
|
||||
}
|
||||
})
|
||||
.set($('.pageLoad'), {display: 'block'})
|
||||
// .fromTo($('.page-wrapper'), {x: 0}, {x: this.$route.params.lang === 'en' ? 200 : -200, duration: 0.7})
|
||||
// .fromTo($('.pageLoad'), {left: this.$route.params.lang === 'en' ? '-100%' : '100%'}, {left: 0, duration: 0.7}, 0)
|
||||
.fromTo($('.page-wrapper'), {opacity: 1}, {opacity: 0, duration: 0.6})
|
||||
.fromTo($('.pageLoad'), {opacity: 0}, {opacity: 1, duration: 0.6}, 0)
|
||||
|
||||
})
|
||||
|
||||
this.$router.afterEach((to, from) => {
|
||||
|
||||
this.$gsap.timeline({
|
||||
delay: 0.5
|
||||
})
|
||||
// .fromTo($('.page-wrapper'), {x: this.$route.params.lang === 'en' ? -200 : 200}, {x: 0, duration: 0.7})
|
||||
// .fromTo($('.pageLoad'), {left: 0}, {left: this.$route.params.lang === 'en' ? '100%' : '-100%', duration: 0.7}, 0)
|
||||
.fromTo($('.page-wrapper'), {opacity: 0}, {opacity: 1, duration: 0.6})
|
||||
.fromTo($('.pageLoad'), {opacity: 1}, {opacity: 0, duration: 0.6}, 0)
|
||||
.set($('.pageLoad'), {display: 'none'})
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,105 @@
|
||||
<template>
|
||||
<div class="container calculation-module" :class="whiteTxt && 'white'">
|
||||
<div class="row mb-5 align-items-start">
|
||||
<div class="col-12 mb-4">
|
||||
<el-checkbox class="mt-2" @change="pipeWeight = null" v-model="useInch"> {{ content.s10.t12 }}</el-checkbox>
|
||||
</div>
|
||||
<div class="col-12 col-md-4 mb-4 mb-md-0">
|
||||
<p>{{ useInch ? content.s10.t13 : content.s10.t4 }}</p>
|
||||
<el-input-number v-model="diameter" :min="0" :size="mini ? 'small' : 'large'"></el-input-number>
|
||||
</div>
|
||||
<div class="col-12 col-md-4 mb-4 mb-md-0">
|
||||
<p>{{ useInch ? content.s10.t14 : content.s10.t5 }}</p>
|
||||
<el-input-number v-model="thickness" :min="0" :size="mini ? 'small' : 'large'"></el-input-number>
|
||||
<div class="mt2"></div>
|
||||
</div>
|
||||
<div class="col-12 col-md-4 mb-4 mb-md-0 mx-auto">
|
||||
<p>{{ content.s10.t6 }}</p>
|
||||
<el-input-number v-model="length" :min="1" :size="mini ? 'small' : 'large'"></el-input-number>
|
||||
<div class="mt2" />
|
||||
</div>
|
||||
<!-- <div class="col-12 col-md-6 col-lg-3">
|
||||
<p>{{ content.s10.t7 }}</p>
|
||||
<el-input-number size="medium" v-model="number_1" :min="0"></el-input-number>
|
||||
<div class="mt2"/>
|
||||
</div> -->
|
||||
<div class="col-12 mx-auto mt-3">
|
||||
<div>
|
||||
<button type="button" @click="calculate" class="btn btn-default cal-btn mt-4 mb-4 d-block">
|
||||
{{ content.s10.t2 }}
|
||||
</button>
|
||||
<template v-if="pipeWeight">
|
||||
<span>
|
||||
{{ content.s10.t9 }}
|
||||
</span>
|
||||
<span style="font-weight: bold">
|
||||
{{ pipeWeight }}
|
||||
</span>
|
||||
<span>
|
||||
{{ content.s10.t11 }}
|
||||
</span>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'PipeWeightCalculationModule',
|
||||
props: {
|
||||
whiteTxt: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false
|
||||
},
|
||||
mini: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
diameter: null,
|
||||
thickness: null,
|
||||
length: 1,
|
||||
useInch: false,
|
||||
pipeWeight: null
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
content() {
|
||||
return this.$store.state.content.home[this.$route.params.lang]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
calculate() {
|
||||
// check for validations
|
||||
if (!Number(this.diameter) || !Number(this.thickness) || !Number(this.length)) {
|
||||
return this.$message({
|
||||
message: this.content.s10.errMsg1,
|
||||
type: 'error'
|
||||
})
|
||||
}
|
||||
|
||||
if (this.diameter - this.thickness <= 0) {
|
||||
return this.$message({
|
||||
message: this.content.s10.errMsg2,
|
||||
type: 'error'
|
||||
})
|
||||
}
|
||||
|
||||
// init fixed and relative values
|
||||
const inchCoefficient = 25.4
|
||||
const FixedCoefficient = 0.02466
|
||||
const thickness = this.useInch ? this.thickness * inchCoefficient : this.thickness
|
||||
const diameter = this.useInch ? this.diameter * inchCoefficient : this.diameter
|
||||
|
||||
// calulation formula
|
||||
this.pipeWeight = (FixedCoefficient * thickness * (diameter - thickness) * this.length).toFixed(2)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,156 @@
|
||||
<template>
|
||||
<div class="preLoader">
|
||||
<div class="relativePos">
|
||||
<div class="txtBox">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
x="0px"
|
||||
y="0px"
|
||||
viewBox="0 0 157.9 81"
|
||||
style="enable-background: new 0 0 157.9 81"
|
||||
xml:space="preserve"
|
||||
>
|
||||
<g class="top-txt">
|
||||
<path
|
||||
class="st1 o"
|
||||
d="M100.9,42.7c1.7,0,3.4,0.4,4.9,1.1c2.3,1,4.1,2.7,5.3,4.9c1,1.8,1.5,3.7,1.5,5.8c0,4.3-2.5,8.2-6.3,10.2
|
||||
c-1.7,0.9-3.5,1.3-5.4,1.3c-4.7-0.1-8.8-2.8-10.7-7.1c-1.4-3.3-1.2-7,0.5-10.2c1.2-2.2,3-3.9,5.3-4.9C97.5,43,99.2,42.7,100.9,42.7
|
||||
M99.7,43.7l-0.1,10.5l0.1,8.7v2c0.3,0.1,0.7,0.1,1.1,0.1c2.3,0,4.5-0.7,6.3-2c1.7-1.1,2.9-2.8,3.7-4.6c0.5-1.3,0.8-2.7,0.8-4.1
|
||||
c0-1.8-0.5-3.6-1.4-5.2c-1-1.9-2.7-3.4-4.7-4.3c-1.5-0.7-3.1-1.1-4.7-1.1C100.4,43.6,100,43.7,99.7,43.7"
|
||||
/>
|
||||
<path
|
||||
class="st1 x"
|
||||
d="M123.4,52.7v6.2l0.1,6.4h-8.3v-0.9v-3.3l0.1-5.9l-0.1-6.6v-0.9h8.2V51c0.8-0.9,1.6-1.7,2.6-2.5c0.9-0.7,2-1.1,3.1-1.2
|
||||
c0.5,0,1,0.1,1.5,0.4c0.4,0.2,0.6,0.6,0.6,1c0,0.3-0.1,0.6-0.4,0.8c-0.2,0.2-0.6,0.3-0.9,0.3c-0.3,0-0.5-0.1-0.8-0.2
|
||||
c-0.4-0.2-0.8-0.3-1.2-0.3c-0.8,0-1.6,0.3-2.2,0.8C124.9,50.9,124.1,51.7,123.4,52.7"
|
||||
/>
|
||||
<path
|
||||
class="st1 i"
|
||||
d="M140.9,47.7v0.5v2.5v3.9v5.9l0.1,3.3v1.4h-8.3l0.1-5.9l0.1-5.2v-2.8l-0.1-3v-0.6L140.9,47.7z M136.7,42.1
|
||||
c2.8,0,4.2,0.7,4.2,2.2c0,0.7-0.4,1.4-1.1,1.7c-1,0.4-2.1,0.7-3.1,0.6c-2.7,0-4-0.8-4-2.3S134,42,136.7,42.1"
|
||||
/>
|
||||
<path
|
||||
class="st1 n"
|
||||
d="M144.4,62.3c0.3,0.1,0.6,0.2,0.8,0.5c0.7,0.6,1.4,1,2.3,1.3c0.9,0.3,1.8,0.5,2.8,0.5c0.3,0,0.6,0,0.9-0.2
|
||||
c0.2-0.1,0.3-0.4,0.3-0.6c0-0.3-0.2-0.7-0.4-0.9c-0.3-0.4-0.9-1-1.8-2.1c-1.6-1.6-3.1-3.4-4.5-5.2c-0.6-0.8-1-1.8-1-2.9
|
||||
c0-0.8,0.2-1.6,0.7-2.3c0.5-0.8,1.2-1.4,2-1.9c1.4-0.9,3.1-1.3,4.8-1.3c1.4,0,2.8,0.3,4.2,0.8c1.1,0.4,1.7,0.9,1.7,1.4
|
||||
c0,0.2-0.1,0.3-0.2,0.4c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4-0.1-0.8-0.3-1.1-0.6c-1.1-0.8-2.4-1.2-3.7-1.2c-0.4,0-0.7,0-1.1,0.2
|
||||
c-0.2,0.1-0.4,0.4-0.4,0.7c0.1,0.5,0.3,1,0.7,1.4c0.4,0.6,1.4,1.5,2.7,2.8s2.2,2.2,2.5,2.6c0.4,0.4,0.7,0.9,1,1.4
|
||||
c0.6,0.9,0.9,1.9,0.9,2.9c0,1.7-0.9,3.2-2.4,4c-1.4,0.9-3.1,1.3-4.8,1.3c-2,0-3.9-0.5-5.6-1.4c-0.4-0.2-0.7-0.4-1-0.7
|
||||
c-0.2-0.2-0.3-0.4-0.3-0.6C143.9,62.5,144.1,62.2,144.4,62.3C144.3,62.3,144.4,62.3,144.4,62.3"
|
||||
/>
|
||||
</g>
|
||||
<g class="bottom-txt">
|
||||
<path
|
||||
class="st1 o0"
|
||||
d="M101.2,73c-0.3,0.4-0.6,0.7-1,1s-0.8,0.5-1.3,0.5c-0.3,0-0.6-0.1-0.9-0.2c-0.3-0.2-0.5-0.4-0.7-0.6
|
||||
c-0.2,0.7-0.5,1.4-0.9,2.1c-0.8,1.3-2,2.3-3.4,2.9c-0.7,0.3-1.4,0.4-2.2,0.4c-0.7,0-1.4-0.2-1.9-0.7s-0.8-1.2-0.7-1.9
|
||||
c0-0.8,0.2-1.5,0.6-2.2s0.9-1.3,1.5-1.8s1.3-1,2.1-1.3c0.7-0.3,1.5-0.5,2.2-0.5s1.3,0.2,1.9,0.6c0.4,0.4,0.7,0.9,0.8,1.5
|
||||
c0.1,0.4,0.2,0.7,0.5,1s0.6,0.4,1,0.4s0.8-0.1,1.1-0.4c0.4-0.3,0.8-0.6,1.1-1L101.2,73z M91,78.8c0.4,0,0.8-0.1,1.1-0.4
|
||||
c0.4-0.3,0.7-0.6,1.1-1c0.3-0.4,0.7-0.9,0.9-1.3c0.3-0.5,0.5-1,0.7-1.5s0.4-0.9,0.5-1.4c0.1-0.4,0.2-0.8,0.2-1.1
|
||||
c0-0.3-0.1-0.6-0.2-0.9c-0.2-0.2-0.5-0.3-0.7-0.3c-0.4,0-0.8,0.1-1.1,0.4c-0.4,0.3-0.7,0.6-1.1,1c-0.3,0.4-0.7,0.9-0.9,1.3
|
||||
c-0.3,0.5-0.5,1-0.7,1.5s-0.4,0.9-0.5,1.4c-0.1,0.4-0.2,0.8-0.2,1.1c0,0.3,0.1,0.6,0.2,0.9C90.5,78.7,90.7,78.8,91,78.8"
|
||||
/>
|
||||
<path
|
||||
class="st1 x"
|
||||
d="M114.1,73.1c-0.5,0.6-1,1.3-1.6,2s-1.3,1.4-2,1.9c-0.7,0.6-1.5,1.1-2.3,1.5s-1.6,0.6-2.4,0.6c-0.6,0-1.1-0.2-1.6-0.5
|
||||
c-0.4-0.4-0.6-0.9-0.7-1.4c-0.3,0.2-0.6,0.5-0.9,0.7s-0.7,0.4-1,0.6c-0.4,0.2-0.7,0.3-1.1,0.4s-0.8,0.2-1.2,0.1
|
||||
c-0.6,0-1.3-0.1-1.8-0.5c-0.4-0.3-0.6-0.8-0.6-1.4c0-0.4,0.1-0.7,0.3-1c0.2-0.3,0.6-0.5,1-0.4c0.3,0,0.5,0.1,0.7,0.3
|
||||
c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7c-0.2,0.2-0.4,0.3-0.7,0.3c0,0.3,0.1,0.6,0.3,0.8c0.2,0.2,0.5,0.3,0.8,0.3
|
||||
c0.7,0,1.3-0.2,1.9-0.6s1.2-1,1.7-1.6s0.9-1.3,1.2-2c0.3-0.6,0.4-1.3,0.5-1.9c0-0.3-0.1-0.6-0.2-0.9c-0.2-0.3-0.5-0.4-0.8-0.4
|
||||
c-0.2,0-0.5,0.1-0.7,0.2s-0.5,0.3-0.6,0.4c-0.2,0.2-0.4,0.4-0.6,0.6s-0.3,0.4-0.5,0.6L101,73c0.2-0.3,0.4-0.5,0.6-0.8
|
||||
s0.5-0.5,0.7-0.7c0.3-0.2,0.6-0.4,0.9-0.6c0.3-0.1,0.7-0.2,1.1-0.2c0.5,0,1.1,0.2,1.5,0.5c0.4,0.4,0.6,0.8,0.7,1.3
|
||||
c0.5-0.5,1.1-0.9,1.7-1.3c0.6-0.3,1.3-0.5,2-0.5c0.2,0,0.5,0,0.7,0.1c0.2,0,0.5,0.1,0.7,0.2s0.4,0.3,0.5,0.4
|
||||
c0.1,0.2,0.2,0.5,0.2,0.7c0,0.4-0.2,0.8-0.5,1s-0.7,0.3-1.1,0.3c-0.1,0-0.3,0-0.4-0.1c0.1-0.2,0.1-0.5,0.2-0.7
|
||||
c0.1-0.3,0.1-0.5,0.1-0.8s-0.1-0.5-0.2-0.7s-0.3-0.3-0.6-0.3c-0.5,0-0.9,0.2-1.3,0.5c-0.5,0.4-1,0.8-1.4,1.3s-0.8,1.1-1.1,1.8
|
||||
c-0.3,0.6-0.4,1.3-0.4,2c0,0.5,0.1,0.9,0.5,1.3c0.4,0.3,0.8,0.4,1.3,0.4c0.7,0,1.3-0.2,1.9-0.6c0.7-0.4,1.3-0.9,1.9-1.4
|
||||
s1.2-1.1,1.7-1.7s0.9-1.1,1.3-1.5L114.1,73.1z"
|
||||
/>
|
||||
<path
|
||||
class="st1 i"
|
||||
d="M116.9,71c-0.7,1.1-1.3,2-1.8,2.8s-0.9,1.4-1.2,2s-0.5,1-0.7,1.3c-0.1,0.3-0.2,0.5-0.2,0.8c0,0.1,0,0.3,0.1,0.4
|
||||
s0.2,0.2,0.3,0.2c0.4-0.1,0.9-0.2,1.2-0.5c0.7-0.5,1.4-1.1,2-1.7l0.9-1c0.3-0.3,0.6-0.6,0.9-1s0.5-0.6,0.7-0.8l0.5-0.6l0.2,0.1
|
||||
c-0.2,0.2-0.4,0.5-0.6,0.8s-0.5,0.6-0.8,0.9s-0.6,0.7-0.9,1l-0.9,0.9c-0.6,0.7-1.4,1.3-2.2,1.8c-0.5,0.3-1.1,0.5-1.7,0.5
|
||||
c-0.4,0-0.8-0.1-1.1-0.4c-0.3-0.3-0.4-0.6-0.4-1c0-0.3,0.1-0.6,0.2-0.9c0.2-0.4,0.3-0.8,0.6-1.2c0.3-0.5,0.6-1,1-1.7s1-1.6,1.6-2.6
|
||||
L116.9,71z M118.2,66.2c0.3,0,0.5,0.1,0.7,0.3c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.6-0.4,0.8c-0.2,0.2-0.5,0.4-0.8,0.4
|
||||
s-0.6-0.1-0.8-0.3c-0.2-0.2-0.4-0.5-0.4-0.8s0.1-0.6,0.4-0.8C117.6,66.3,117.9,66.2,118.2,66.2"
|
||||
/>
|
||||
<path
|
||||
class="st1 n"
|
||||
d="M119.8,75l0.9-1.1c0.4-0.5,0.9-1,1.3-1.4c0.5-0.5,1-0.9,1.6-1.2c0.5-0.3,1.1-0.5,1.7-0.5c0.4,0,0.8,0.1,1.1,0.4
|
||||
c0.3,0.3,0.4,0.6,0.4,1c0,0.5-0.2,1.1-0.5,1.5c-0.3,0.5-0.7,1-1,1.6s-0.7,1-1,1.5c-0.3,0.4-0.4,0.8-0.5,1.3c0,0.2,0,0.3,0.1,0.4
|
||||
s0.3,0.2,0.4,0.2c0.4-0.1,0.7-0.2,1-0.5c0.7-0.5,1.3-1.1,1.9-1.7c0.6-0.7,1.2-1.3,1.7-2l1.2-1.4l0.2,0.1l-1.4,1.7
|
||||
c-0.6,0.7-1.1,1.3-1.8,2c-0.6,0.6-1.2,1.2-1.9,1.7c-0.5,0.3-1.1,0.5-1.6,0.5s-0.9-0.1-1.2-0.5c-0.3-0.3-0.4-0.7-0.4-1.1
|
||||
c0-0.5,0.2-1.1,0.5-1.5c0.3-0.5,0.6-1,1-1.5s0.7-1,1-1.4c0.3-0.3,0.4-0.7,0.5-1.2c0-0.1-0.1-0.3-0.2-0.4s-0.3-0.2-0.5-0.2
|
||||
c-0.4,0-0.7,0.2-1,0.4c-0.4,0.3-0.9,0.6-1.3,1c-0.5,0.5-0.9,1-1.3,1.5s-0.9,1.1-1.3,1.6s-0.8,1.1-1.1,1.6s-0.6,0.9-0.8,1.3
|
||||
l-2.2,0.1c0.8-1.3,1.6-2.6,2.3-3.8s1.6-2.6,2.3-3.9l2.5-0.1l-2.9,4H119.8z"
|
||||
/>
|
||||
<path
|
||||
class="st1 c"
|
||||
d="M145.2,73.1c-0.5,0.6-1.1,1.3-1.8,2c-0.6,0.7-1.3,1.4-2,1.9c-0.7,0.6-1.5,1.1-2.3,1.4c-0.8,0.4-1.7,0.6-2.6,0.6
|
||||
c-0.7,0-1.5-0.2-2-0.7c-0.5-0.6-0.7-1.3-0.7-2.1c0-0.7,0.2-1.4,0.6-2.1c0.4-0.7,1-1.3,1.6-1.8s1.4-1,2.1-1.3
|
||||
c0.7-0.3,1.5-0.5,2.3-0.5c0.6,0,1.1,0.1,1.6,0.4c0.4,0.2,0.6,0.6,0.6,1c0,0.3-0.1,0.5-0.2,0.8c-0.1,0.2-0.2,0.4-0.4,0.6
|
||||
s-0.4,0.3-0.6,0.4c-0.2,0.1-0.4,0.1-0.7,0.1c-0.2,0-0.3,0-0.5,0c0.1-0.3,0.2-0.7,0.3-1s0.2-0.7,0.2-1c0-0.2-0.1-0.4-0.2-0.6
|
||||
c-0.1-0.1-0.3-0.2-0.5-0.2c-0.5,0-0.9,0.2-1.3,0.4c-0.5,0.3-1,0.7-1.4,1.2s-0.8,1.1-1.1,1.6c-0.3,0.6-0.4,1.3-0.4,2
|
||||
c0,0.5,0.2,1,0.5,1.4c0.4,0.4,0.9,0.6,1.4,0.6c0.7,0,1.5-0.2,2.1-0.6c0.7-0.4,1.4-0.9,2-1.4s1.2-1.1,1.7-1.8L145,73L145.2,73.1z"
|
||||
/>
|
||||
<path
|
||||
class="st1 o1"
|
||||
d="M155.7,73c-0.3,0.4-0.6,0.7-1,1s-0.8,0.5-1.3,0.5c-0.3,0-0.6-0.1-0.9-0.2c-0.3-0.2-0.5-0.4-0.7-0.6
|
||||
c-0.2,0.7-0.5,1.4-0.9,2.1c-0.8,1.3-2,2.3-3.4,2.9c-0.7,0.3-1.4,0.4-2.2,0.4c-0.7,0-1.4-0.2-1.9-0.7s-0.8-1.2-0.7-1.9
|
||||
c0-0.8,0.2-1.5,0.6-2.2c0.4-0.7,0.9-1.3,1.5-1.9c0.6-0.5,1.3-1,2.1-1.3c0.7-0.3,1.5-0.5,2.2-0.5s1.3,0.2,1.9,0.6
|
||||
c0.4,0.4,0.7,0.9,0.8,1.5c0.1,0.4,0.2,0.7,0.5,1s0.6,0.4,1,0.4s0.8-0.1,1.1-0.4c0.4-0.3,0.8-0.6,1.1-1L155.7,73z M145.5,78.8
|
||||
c0.4,0,0.8-0.1,1.1-0.4c0.4-0.3,0.7-0.6,1.1-1c0.3-0.4,0.7-0.9,0.9-1.3c0.3-0.5,0.5-1,0.7-1.5s0.4-0.9,0.5-1.4
|
||||
c0.1-0.4,0.2-0.8,0.2-1.1c0-0.3-0.1-0.6-0.2-0.9c-0.2-0.2-0.5-0.3-0.7-0.3c-0.4,0-0.8,0.1-1.1,0.4c-0.4,0.3-0.7,0.6-1.1,1
|
||||
c-0.3,0.4-0.7,0.9-0.9,1.3c-0.3,0.5-0.5,1-0.7,1.5s-0.4,0.9-0.5,1.4c-0.1,0.4-0.2,0.8-0.2,1.1c0,0.3,0.1,0.6,0.2,0.9
|
||||
C144.9,78.7,145.2,78.8,145.5,78.8"
|
||||
/>
|
||||
<path
|
||||
class="st1 dot"
|
||||
d="M153.6,77.6c0-0.7,0.6-1.2,1.2-1.2c0.7,0.1,1.2,0.7,1.1,1.3c-0.1,0.6-0.5,1.1-1.1,1.1c-0.3,0-0.6-0.1-0.9-0.4
|
||||
C153.8,78.3,153.6,78,153.6,77.6"
|
||||
/>
|
||||
</g>
|
||||
|
||||
<path class="outer-circle-line" d="M40.5,25.2c19.4,0,19.4,30.1,0,30.1C21.1,55.3,21.1,25.2,40.5,25.2z" />
|
||||
<circle class="st0 outer-circle" cx="40.5" cy="40.6" r="36.3" />
|
||||
<circle class="st0 inner-circle" cx="51" cy="51" r="21.5" />
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
this.$gsap
|
||||
.timeline()
|
||||
.set($('.preLoader svg'), { opacity: 1 })
|
||||
.from($('.preLoader .inner-circle,.preLoader .outer-circle'), { opacity: 0, duration: 0.5 })
|
||||
.to(
|
||||
$('.preLoader .inner-circle'),
|
||||
{
|
||||
motionPath: {
|
||||
path: '.preLoader .outer-circle-line',
|
||||
align: '.preLoader .outer-circle-line',
|
||||
alignOrigin: [0.5, 0.5],
|
||||
autoRotate: true,
|
||||
start: 0.4,
|
||||
end: 1.5
|
||||
},
|
||||
duration: 2,
|
||||
ease: 'bounce'
|
||||
},
|
||||
'-=0.7'
|
||||
)
|
||||
.from($('.preLoader .top-txt path'), { opacity: 0, x: 5, duration: 0.15, stagger: 0.05 }, '+=0.4')
|
||||
.from($('.preLoader .bottom-txt path'), { opacity: 0, x: 5, duration: 0.15, stagger: 0.05 })
|
||||
.to($('.preLoader'), { autoAlpha: 0, duration: 0.3 }, '+=0.5')
|
||||
.timeScale(1.5)
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,110 @@
|
||||
<template>
|
||||
<div class="container calculation-module" :class="whiteTxt && 'white'">
|
||||
<div class="row align-items-start">
|
||||
<div class="col-12 mb-4" :class="mini ? 'col-lg-6 col-xl-3 mb-xl-0' : 'col-md-6 col-lg-3 mb-lg-0'">
|
||||
<p>{{ meterUnitLength ? content.s10.t6 : content.s10.t18 }}</p>
|
||||
<el-input-number v-model="length" :min="1" :size="mini ? 'small' : 'large'"></el-input-number>
|
||||
<el-checkbox class="mt-2" @change="sheetWeight = null" v-model="meterUnitLength" :class="mini && 'small'">
|
||||
{{ content.s10.t17 }}
|
||||
</el-checkbox>
|
||||
</div>
|
||||
<div class="col-12 mb-4" :class="mini ? 'col-lg-6 col-xl-3 mb-xl-0' : 'col-md-6 col-lg-3 mb-lg-0'">
|
||||
<p>{{ meterUnitWidth ? content.s10.t10 : content.s10.t19 }}</p>
|
||||
<el-input-number v-model="width" :min="1" :size="mini ? 'small' : 'large'"></el-input-number>
|
||||
<el-checkbox class="mt-2" @change="sheetWeight = null" v-model="meterUnitWidth" :class="mini && 'small'">
|
||||
{{ content.s10.t17 }}
|
||||
</el-checkbox>
|
||||
</div>
|
||||
<div class="col-12 mb-4" :class="mini ? 'col-lg-6 col-xl-3 mb-xl-0' : 'col-md-6 col-lg-3 mb-lg-0'">
|
||||
<p>{{ meterUnitThickness ? content.s10.t20 : content.s10.t5 }}</p>
|
||||
<el-input-number v-model="thickness" :min="1" :size="mini ? 'small' : 'large'"></el-input-number>
|
||||
<el-checkbox class="mt-2" @change="sheetWeight = null" v-model="meterUnitThickness" :class="mini && 'small'">
|
||||
{{ content.s10.t17 }}
|
||||
</el-checkbox>
|
||||
</div>
|
||||
<div class="col-12 mb-4" :class="mini ? 'col-lg-6 col-xl-3 mb-xl-0' : 'col-md-6 col-lg-3 mb-lg-0'">
|
||||
<p>{{ content.s10.t7 }}</p>
|
||||
<el-input-number v-model="quantity" :min="1" :size="mini ? 'small' : 'large'"></el-input-number>
|
||||
</div>
|
||||
<div class="col-12 mx-auto mb-5 mt-3">
|
||||
<div>
|
||||
<button type="button" @click="calculate" class="btn btn-default cal-btn mt-4 mb-4 d-block">
|
||||
{{ content.s10.t2 }}
|
||||
</button>
|
||||
<template >
|
||||
<p v-if="sheetWeight">
|
||||
<span>
|
||||
{{ content.s10.t3 }}
|
||||
</span>
|
||||
<span style="font-weight: bold">
|
||||
{{ sheetWeight }}
|
||||
</span>
|
||||
<span>
|
||||
{{ content.s10.t16 }}
|
||||
</span>
|
||||
</p>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'SheetWeightCalculationModule',
|
||||
props: {
|
||||
whiteTxt: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false
|
||||
},
|
||||
mini: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
length: 1,
|
||||
meterUnitLength: true,
|
||||
|
||||
width: 1,
|
||||
meterUnitWidth: true,
|
||||
|
||||
thickness: 1,
|
||||
meterUnitThickness: false,
|
||||
|
||||
quantity: 1,
|
||||
sheetWeight: null
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
content() {
|
||||
return this.$store.state.content.home[this.$route.params.lang]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
calculate() {
|
||||
// check for validations
|
||||
if (!this.width || !this.thickness || !this.length || !this.quantity) {
|
||||
return this.$message({
|
||||
message: this.content.s10.errMsg1,
|
||||
type: 'error'
|
||||
})
|
||||
}
|
||||
|
||||
// init fixed and relative values
|
||||
const FixedCoefficient = 7.85
|
||||
const meterUnitRatio = 1000
|
||||
const length = this.meterUnitLength ? this.length : this.length / meterUnitRatio
|
||||
const width = this.meterUnitWidth ? this.width : this.width / meterUnitRatio
|
||||
const thickness = this.meterUnitThickness ? this.thickness * meterUnitRatio : this.thickness
|
||||
|
||||
// calulation formula
|
||||
this.sheetWeight = (width * thickness * length * this.quantity * FixedCoefficient).toFixed(2)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,49 @@
|
||||
<template>
|
||||
<footer class="footer-BG">
|
||||
<div class="container">
|
||||
<div class="footer-body">
|
||||
<div class="row">
|
||||
<div class="col-12 col-xl-4 col-lg-3 col-md-12 col-sm-12 d-flex flex-column logoFooter paddingCol">
|
||||
<img src="/img/logo.svg" alt="" />
|
||||
<a class="negareh" href="https://negarehagency.com" target="_blank">{{ content.t1 }}</a>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-xl-4 col-lg-6 col-md-12 col-sm-12 textCenter">
|
||||
<nuxt-link :to="{ name: 'lang-about', params: { lang: $route.params.lang } }">
|
||||
{{ content.t2 }}
|
||||
</nuxt-link>
|
||||
<i class="fas fa-circle"></i>
|
||||
<nuxt-link :to="{ name: 'lang-activities', params: { lang: $route.params.lang } }">
|
||||
{{ content.t3 }}
|
||||
</nuxt-link>
|
||||
<i class="fas fa-circle"></i>
|
||||
<nuxt-link
|
||||
:to="{ name: 'lang-projects', params: { lang: $route.params.lang }, query: { category: 'all' } }"
|
||||
>
|
||||
{{ content.t4 }}
|
||||
</nuxt-link>
|
||||
</div>
|
||||
<div class="col-12 col-xl-4 col-lg-3 col-md-12 col-sm-12 phone-footer paddingCol">
|
||||
<i class="fas fa-phone-alt"></i>
|
||||
<a class="phoneNum" href="tel:021-88612602">021-88612602</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
mounted() {
|
||||
let f = this.$gsap.timeline()
|
||||
f.fromTo($('.footer-body'), { opacity: 0 }, { opacity: 1, duration: 1 })
|
||||
},
|
||||
|
||||
computed: {
|
||||
content() {
|
||||
return this.$store.state.content.footer[this.$route.params.lang]
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,273 @@
|
||||
<template>
|
||||
<!-- <header id="header" :class="routeName === 'lang' ? blogPosts.docs.length ? 'header' : 'header1': 'header1'">-->
|
||||
<header class="header">
|
||||
<div class="site--header">
|
||||
<div class="main-nav container-fluid">
|
||||
<div class="row align-items-stretch">
|
||||
<div class="col-9 d-none d-lg-block">
|
||||
<nav>
|
||||
<ul>
|
||||
<nuxt-link :to="{ name: 'lang', params: { lang: $route.params.lang } }" v-slot="{href,navigate,isActive}" exact custom>
|
||||
<li @click="navigate" :class="isActive ? 'active-link' : null">
|
||||
<a :href="href">
|
||||
<img src="/img/logo.svg" alt="">
|
||||
</a>
|
||||
</li>
|
||||
</nuxt-link>
|
||||
<nuxt-link :to="{ name: 'lang', params: { lang: $route.params.lang }}" v-slot="{href,navigate,isActive}" exact custom>
|
||||
<li @click="navigate" :class="isActive ? 'active-link' : null">
|
||||
<a :href="href">{{ content.t1 }}</a>
|
||||
</li>
|
||||
</nuxt-link>
|
||||
<nuxt-link :to="{ name: 'lang-about', params: { lang: $route.params.lang } }" v-slot="{href,navigate,isActive}" custom>
|
||||
<li @click="navigate" :class="isActive ? 'active-link' : null">
|
||||
<a :href="href">{{ content.t2 }}</a>
|
||||
</li>
|
||||
</nuxt-link>
|
||||
<nuxt-link :to="{name: 'lang-activities',params: { lang: $route.params.lang }}" v-slot="{href,navigate,isActive}" custom>
|
||||
<li @click="navigate" :class="isActive ? 'active-link' : null">
|
||||
<a :href="href">{{ content.t3 }}</a>
|
||||
</li>
|
||||
</nuxt-link>
|
||||
<nuxt-link :to="{name: 'lang-projects', params: { lang: $route.params.lang },query: {category: 'all'}}" v-slot="{href,navigate,isActive}" custom>
|
||||
<li @click="navigate" :class="isActive ? 'active-link' : null">
|
||||
<a :href="href">{{ content.t4 }}</a>
|
||||
</li>
|
||||
</nuxt-link>
|
||||
<nuxt-link :to="{name: 'lang-gallery',params: { lang: $route.params.lang }}"
|
||||
v-slot="{href,navigate,isActive}" custom>
|
||||
<li @click="navigate" :class="isActive ? 'active-link' : null">
|
||||
<a :href="href">{{ content.t5 }}</a>
|
||||
</li>
|
||||
</nuxt-link>
|
||||
<nuxt-link :to="{name: 'lang-catalog',params: { lang: $route.params.lang }}" v-slot="{href,navigate,isActive}" custom>
|
||||
<li @click="navigate" :class="isActive ? 'active-link' : null">
|
||||
<a :href="href">{{ content.t6 }}</a>
|
||||
</li>
|
||||
</nuxt-link>
|
||||
<nuxt-link
|
||||
:to="{ name: 'lang-blog', params: { lang: $route.params.lang },query: {category: 'all',page: 1} }"
|
||||
v-slot="{href,navigate,isActive}" custom>
|
||||
<li @click="navigate" :class="isActive ? 'active-link' : null">
|
||||
<a :href="href">{{ content.t7 }}</a>
|
||||
</li>
|
||||
</nuxt-link>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="col-3 d-none d-lg-flex align-items-center justify-content-end">
|
||||
<div class="searchBtns">
|
||||
<i class="fal fa-search" v-if="!searching" @click="search(true)"></i>
|
||||
<i class="fal fa-times" v-else @click="search(false)"></i>
|
||||
</div>
|
||||
<nuxt-link
|
||||
class="btn-header lang"
|
||||
:to="{ to: $route.fullPath,query: $route.query, params: { lang: $route.params.lang === 'en' ? 'fa' : 'en' } }">
|
||||
{{ $route.params.lang === 'en' ? 'Fa' : 'En' }}
|
||||
</nuxt-link>
|
||||
<nuxt-link class="btn-header contact" :to="{ name: 'lang-contact', params: { lang: $route.params.lang } }">
|
||||
{{ content.t8 }}
|
||||
</nuxt-link>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="searchBox d-none d-md-block" :class="searching? 'active-search' : null">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<form @submit.prevent="doSearch" class="searchInput">
|
||||
<input type="text" name="search" id="searchInput" placeholder="عبارت مدنظر خود را جستجو کنید" v-model="searchableText">
|
||||
<button type="submit">
|
||||
<i class="fas fa-arrow-circle-left"></i>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-12 d-lg-none">
|
||||
<button @click="drawerHandle" class="icon-menu-open">
|
||||
<i class="fas fa-bars" style="font-size: 25px"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="site--header--drawer" :class="[drawerVisible ? 'isOpen' : '', routeName === 'lang' && 'drawer']">
|
||||
<div class="headerDrawer">
|
||||
<div>
|
||||
<img src="/img/logo.svg" alt="OrisOxin logo"/>
|
||||
</div>
|
||||
<button @click="drawerHandle" class="icon-menu-close">
|
||||
<i class="fas fa-times fa-2x"></i>
|
||||
</button>
|
||||
</div>
|
||||
<div class="drawer-body">
|
||||
<ul @click="drawerHandle">
|
||||
<li class="link1">
|
||||
<nuxt-link class="li-link" :to="{ name: 'lang', params: { lang: $route.params.lang } }" exact>
|
||||
<i class="fas fa-home"></i>
|
||||
{{ content.t1 }}
|
||||
</nuxt-link>
|
||||
</li>
|
||||
<li class="link2">
|
||||
<nuxt-link class="li-link" :to="{name: 'lang-about',params: { lang: $route.params.lang }}">
|
||||
<i class="fas fa-info-circle"></i>
|
||||
{{ content.t2 }}
|
||||
</nuxt-link>
|
||||
</li>
|
||||
<li class="link3">
|
||||
<nuxt-link class="li-link" :to="{name: 'lang-activities',params: { lang: $route.params.lang }}">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
{{ content.t3 }}
|
||||
</nuxt-link>
|
||||
</li>
|
||||
<li class="link4">
|
||||
<nuxt-link class="li-link" :to="{name: 'lang-projects',params: { lang: $route.params.lang },query: {category: 'all'}}">
|
||||
<i class="fas fa-project-diagram"></i>
|
||||
{{ content.t4 }}
|
||||
</nuxt-link>
|
||||
</li>
|
||||
<li class="link5">
|
||||
<nuxt-link class="li-link" :to="{name: 'lang-gallery',params: { lang: $route.params.lang }}">
|
||||
<i class="fas fa-images"></i>
|
||||
{{ content.t5 }}
|
||||
</nuxt-link>
|
||||
</li>
|
||||
<li class="link6">
|
||||
<nuxt-link class="li-link" :to="{name: 'lang-catalog',params: { lang: $route.params.lang }}">
|
||||
<i class="fas fa-clipboard-list"></i>
|
||||
{{ content.t6 }}
|
||||
</nuxt-link>
|
||||
</li>
|
||||
<li class="link7">
|
||||
<nuxt-link class="li-link" :to="{ name: 'lang-blog', params: { lang: $route.params.lang },query: {category: 'all',page: 1}}">
|
||||
<i class="fas fa-blog"></i>
|
||||
{{ content.t7 }}
|
||||
</nuxt-link>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="btn-drawer">
|
||||
<div class="row">
|
||||
<div class="col-6 mb-2">
|
||||
<nuxt-link class="li-link-btn btn-contact-drawer link8" :to="{name: 'lang-contact',params: { lang: $route.params.lang }}"
|
||||
@click.native="drawerHandle">
|
||||
{{ content.t8 }}</nuxt-link>
|
||||
</div>
|
||||
<div class="col-5">
|
||||
<nuxt-link
|
||||
class="li-link-btn btn-contact-drawer link8"
|
||||
:to="{ to: $route.fullPath,query: $route.query, params: { lang: $route.params.lang === 'en' ? 'fa' : 'en' } }">
|
||||
{{ $route.params.lang === 'en' ? 'Fa' : 'En' }}
|
||||
</nuxt-link>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="searchBox d-block d-lg-none">
|
||||
<form @submit.prevent="doSearch" class="searchInput">
|
||||
<input type="text" name="search" id="searchInput1" placeholder="عبارت مدنظر خود را جستجو کنید" v-model="searchableText">
|
||||
<button type="submit">
|
||||
<i class="fas fa-arrow-circle-left"></i>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drawer-BG"></div>
|
||||
</div>
|
||||
</header>
|
||||
</template>
|
||||
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
drawerVisible: false,
|
||||
scrollPosition: null,
|
||||
blogPosts: null,
|
||||
searching: false,
|
||||
searchableText: '',
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
drawerHandle() {
|
||||
this.drawerVisible = !this.drawerVisible
|
||||
const en = this.$route.params.lang === 'en'
|
||||
this.$gsap.timeline()
|
||||
.fromTo($(".headerDrawer"), {opacity: 0}, {opacity: 1, duration: 1})
|
||||
.fromTo($(".drawer-body ul li"), {x: en ? -100 : 100, opacity: 0}, {x: 0, opacity: 1, duration: 0.2, stagger: 0.1}, 0)
|
||||
.fromTo($(".link8"), {y: 20, opacity: 0}, {y: 0, opacity: 1, duration: .2}, '-=0.3')
|
||||
},
|
||||
updateScroll() {
|
||||
this.scrollPosition = window.scrollY
|
||||
},
|
||||
search(status) {
|
||||
this.searching = status
|
||||
if (status) setTimeout(() => $('#searchInput').focus(), 100)
|
||||
else this.searchableText = ''
|
||||
},
|
||||
doSearch() {
|
||||
// if (this.searchableText.length) {
|
||||
// window.open(`https://www.google.com/search?q=${this.searchableText}+site%3Ahttps%3A//orisoxin.com/`, "_blank");
|
||||
// setTimeout(() => this.search(false), 100)
|
||||
// } else {
|
||||
// this.$message({
|
||||
// type: 'warning',
|
||||
// message: 'ابتدا عبارت مورد نظر را بنویسید'
|
||||
// })
|
||||
// }
|
||||
if (this.searchableText.length) {
|
||||
this.$router.push({name: 'lang-search', params: {lang: this.$route.params.lang}, query: {terms: this.searchableText}})
|
||||
setTimeout(() => this.search(false), 100)
|
||||
} else {
|
||||
this.$message({
|
||||
type: 'warning',
|
||||
message: 'ابتدا عبارت مورد نظر را بنویسید'
|
||||
})
|
||||
}
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
$(document).ready(() => {
|
||||
this.$gsap.timeline()
|
||||
.fromTo($(".site--header"), {opacity: 0}, {opacity: 1, duration: 1})
|
||||
|
||||
$(window).scroll(e => {
|
||||
if ($(window).scrollTop() > 100) {
|
||||
$('.site--header').addClass('hasBG')
|
||||
$('.site--header--drawer').addClass('hasBG')
|
||||
} else {
|
||||
$('.site--header').removeClass('hasBG')
|
||||
}
|
||||
|
||||
// if (window.scrollY > 904 && this.routeName === 'lang' && this.blogPosts.docs.length) $('.header').addClass('_header')
|
||||
// else $('.header').removeClass('_header')
|
||||
// if (window.scrollY < 905 && this.routeName === 'lang' && this.blogPosts.docs.length) $('.header').addClass('__header')
|
||||
// else $('.header').removeClass('__header')
|
||||
})
|
||||
});
|
||||
window.addEventListener('scroll', this.updateScroll);
|
||||
},
|
||||
|
||||
computed: {
|
||||
content() {
|
||||
return this.$store.state.content.header[this.$route.params.lang]
|
||||
},
|
||||
routeName() {
|
||||
return this.$route.name
|
||||
}
|
||||
},
|
||||
|
||||
async fetch() {
|
||||
this.blogPosts = await this.$axios.get('/api/public/blogPosts?category=all&page=1').then(res => res.data)
|
||||
.catch(e => console.log('e', e))
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,14 @@
|
||||
<template>
|
||||
<svg class="stroked-text">
|
||||
<text x="10" y="10" id="textStroke" xml:space="preserve">
|
||||
<tspan x="5" y="8" id="spanStroke">{{ text }}</tspan>
|
||||
<tspan x="50" y="0" id="spanStroke1">{{ title }}</tspan>
|
||||
</text>
|
||||
</svg>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: ["text", "title"],
|
||||
};
|
||||
</script>
|
||||
@@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<CSubheader
|
||||
class="custom-subheader px-3"
|
||||
:class="[
|
||||
sidebarShow ? null : 'sideBarClose',
|
||||
sidebarMinimize ? 'sideBarMinimized' : 'sideBarFull'
|
||||
]">
|
||||
<slot/>
|
||||
</CSubheader>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
computed: {
|
||||
sidebarShow() {
|
||||
return this.$store.state.admin.sidebarShow
|
||||
},
|
||||
sidebarMinimize() {
|
||||
return this.$store.state.admin.sidebarMinimize
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<CFooter :fixed="false">
|
||||
<div class="mfs-auto">
|
||||
<div class="copy-right">
|
||||
<span class="mr-1">Powered by</span>
|
||||
<a href="https://danakcorp.com/fa" target="_blank" class="company">Danak Corporation</a>
|
||||
</div>
|
||||
</div>
|
||||
</CFooter>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'TheFooter'
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,50 @@
|
||||
<template>
|
||||
<CHeader fixed with-subheader light>
|
||||
<CToggler
|
||||
in-header
|
||||
class="ml-3 d-lg-none"
|
||||
@click="$store.commit('admin/toggleSidebarMobile')"
|
||||
/>
|
||||
<CToggler
|
||||
in-header
|
||||
class="ml-3 d-md-down-none"
|
||||
@click="$store.commit('admin/toggleSidebarDesktop')"
|
||||
/>
|
||||
<!-- <CHeaderBrand class="mx-auto d-lg-none" to="/">-->
|
||||
<!-- <CIcon name="logo" height="48" alt="Logo"/>-->
|
||||
<!-- </CHeaderBrand>-->
|
||||
<!-- <CHeaderNav class="d-md-down-none mr-auto">-->
|
||||
<!-- <CHeaderNavItem class="px-3">-->
|
||||
<!-- <CHeaderNavLink :to="{name: 'admin'}">-->
|
||||
<!-- صفحه اصلی-->
|
||||
<!-- </CHeaderNavLink>-->
|
||||
<!-- </CHeaderNavItem>-->
|
||||
<!-- </CHeaderNav>-->
|
||||
<CHeaderNav class="mr-4 mr-auto">
|
||||
<TheHeaderDropdownAccnt/>
|
||||
</CHeaderNav>
|
||||
</CHeader>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'TheHeader',
|
||||
data() {
|
||||
return {
|
||||
breadcrumb: [
|
||||
{
|
||||
text: 'صفحه اصلی',
|
||||
to: '/admin'
|
||||
},
|
||||
{
|
||||
text: 'لیست دانلود ها',
|
||||
to: {name: 'admin-downloads'}
|
||||
},
|
||||
{
|
||||
text: 'This is a span'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,72 @@
|
||||
<template>
|
||||
<CDropdown
|
||||
inNav
|
||||
class="c-header-nav-items"
|
||||
placement="bottom-end"
|
||||
add-menu-classes="pt-0"
|
||||
>
|
||||
<template #toggler>
|
||||
<CHeaderNavLink>
|
||||
<div class="c-avatar">
|
||||
<img
|
||||
src="/img/avatar.png"
|
||||
class="c-avatar-img"
|
||||
alt=""
|
||||
title="حساب کاربری"
|
||||
/>
|
||||
</div>
|
||||
</CHeaderNavLink>
|
||||
</template>
|
||||
<CDropdownHeader tag="div" class="text-center" color="light">
|
||||
<strong v-if="$auth.loggedIn">{{ $auth.user.first_name }}</strong>
|
||||
</CDropdownHeader>
|
||||
|
||||
<!-- <CDropdownItem :to="{name: 'admin-users'}">-->
|
||||
<!-- <CIcon name="cil-user"/>-->
|
||||
<!-- <span>پروفایل</span>-->
|
||||
<!-- </CDropdownItem>-->
|
||||
|
||||
<CDropdownItem @click="logOut">
|
||||
<CIcon name="cil-lock-locked"/>
|
||||
<span>خروج از حساب</span>
|
||||
</CDropdownItem>
|
||||
</CDropdown>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'TheHeaderDropdownAccnt',
|
||||
data() {
|
||||
return {
|
||||
itemsCount: 42
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
logOut() {
|
||||
this.$confirm('میخواهید از حساب کاربری خارج شوید؟', 'هشدار', {
|
||||
confirmButtonText: 'بله',
|
||||
cancelButtonText: 'لغو',
|
||||
type: 'warning'
|
||||
}).then(async () => {
|
||||
try {
|
||||
await this.$auth.logout()
|
||||
window.location.replace('/admin/login')
|
||||
} catch (e) {
|
||||
console.log(e.response.data)
|
||||
}
|
||||
}).catch(() => {
|
||||
this.$message({
|
||||
type: 'warning',
|
||||
message: 'عملیات لغو شد'
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.c-icon{
|
||||
margin-right: 0.3rem;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,86 @@
|
||||
<template>
|
||||
<CSidebar
|
||||
fixed
|
||||
:minimize="minimize"
|
||||
:show="show"
|
||||
@update:show="(value) => $store.commit('admin/set', ['sidebarShow', value])"
|
||||
>
|
||||
<CSidebarBrand class="d-md-down-none">
|
||||
<a href="/" target="_blank">
|
||||
<!-- <IconsLogo class="c-sidebar-brand-full" name="logo" style="width: 100%"/>-->
|
||||
<h2 class="c-sidebar-brand-full" name="logo" style="color: #fff;font-size: 30px;">OrisOxin</h2>
|
||||
<h2 class="c-sidebar-brand-minimized" name="logo" style="color: #fff;font-size: 14px;">OrisOxin</h2>
|
||||
<!-- <img src="/favicon.png" alt="logo" class="c-sidebar-brand-minimized" size="custom-size" :height="35" name="logo">-->
|
||||
</a>
|
||||
</CSidebarBrand>
|
||||
|
||||
<!-- <CRenderFunction flat :content-to-render="$options.nav"/>-->
|
||||
|
||||
<!-- sidebar content -->
|
||||
<CSidebarNav>
|
||||
<CSidebarNavItem name="صفحه اصلی" :to="{name: 'admin'}" icon="cil-speedometer"/>
|
||||
|
||||
<CSidebarNavItem name="اسلایدر" :to="{name: 'admin-slider'}" fontIcon="far fa-images"/>
|
||||
|
||||
<CSidebarNavDropdown name="رویدادها" fontIcon="fab fa-blogger">
|
||||
<CSidebarNavItem name="افزودن پست" :to="{name: 'admin-blog-posts-new'}"/>
|
||||
<CSidebarNavItem name="پست ها" :to="{name: 'admin-blog-posts'}"/>
|
||||
<CSidebarNavItem name="دسته بندی رویدادها" :to="{name: 'admin-blog-categories'}"/>
|
||||
</CSidebarNavDropdown>
|
||||
|
||||
<CSidebarNavDropdown name="پروژه ها" fontIcon="fab fa-product-hunt">
|
||||
<CSidebarNavItem name="افزودن پروژه" :to="{name: 'admin-projects-new'}"/>
|
||||
<CSidebarNavItem name="لیست پروژه ها" :to="{name: 'admin-projects'}"/>
|
||||
<CSidebarNavItem name="دسته بندی پروژه ها" :to="{name: 'admin-projectCategories'}"/>
|
||||
</CSidebarNavDropdown>
|
||||
|
||||
<CSidebarNavItem name="اعضای تیم" :to="{name: 'admin-team'}" fontIcon="fal fa-users-class"/>
|
||||
|
||||
<CSidebarNavDropdown name="گالری" fontIcon="far fa-images">
|
||||
<CSidebarNavItem name="افزودن تصویر" :to="{name: 'admin-gallery-image',params: {image: 'new'}}"/>
|
||||
<CSidebarNavItem name="تصاویر" :to="{name: 'admin-gallery'}"/>
|
||||
<CSidebarNavItem name="دسته بندی گالری" :to="{name: 'admin-galleryCategories'}"/>
|
||||
</CSidebarNavDropdown>
|
||||
|
||||
<CSidebarNavItem name="کاتالوگ ها" :to="{name: 'admin-catalogs'}" fontIcon="fas fa-file-pdf"/>
|
||||
|
||||
<CSidebarNavItem name="نظرات مشتریان" :to="{name: 'admin-comments'}" fontIcon="fas fa-comment-lines"/>
|
||||
|
||||
<CSidebarNavItem name="پیام های صفحه تماس با ما" :to="{name: 'admin-contact-us-messages'}" fontIcon="fal fa-envelope" :exact="false" :badge="unreadMessages ? {text: unreadMessages,color:'danger'} : null"/>
|
||||
|
||||
<CSidebarNavItem name="کاور صفحات" :to="{name: 'admin-settings'}" fontIcon="fal fa-cog"/>
|
||||
|
||||
</CSidebarNav>
|
||||
<!-- sidebar content -->
|
||||
|
||||
<CSidebarMinimizer
|
||||
class="d-md-down-none"
|
||||
@click.native="$store.commit('admin/set', ['sidebarMinimize', !minimize])"
|
||||
/>
|
||||
</CSidebar>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
// import nav from './_nav'
|
||||
import unreadMessagesCounter from "@/mixins/unreadMessagesCounter"
|
||||
|
||||
export default {
|
||||
name: 'TheSidebar',
|
||||
// nav,
|
||||
computed: {
|
||||
show() {
|
||||
return this.$store.state.admin.sidebarShow
|
||||
},
|
||||
minimize() {
|
||||
return this.$store.state.admin.sidebarMinimize
|
||||
},
|
||||
unreadMessages() {
|
||||
return this.$store.state.admin.unreadMessagesCount
|
||||
}
|
||||
},
|
||||
mixins: [unreadMessagesCounter],
|
||||
mounted() {
|
||||
this.checkMessages()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,67 @@
|
||||
export default [
|
||||
{
|
||||
_name: 'CSidebarNav',
|
||||
_children: [
|
||||
{
|
||||
_name: 'CSidebarNavItem',
|
||||
name: 'صفحه اصلی',
|
||||
to: {name: 'admin'},
|
||||
icon: 'cil-speedometer'
|
||||
},
|
||||
// {
|
||||
// _name: 'CSidebarNavTitle',
|
||||
// _children: ['مدیریت صفحات داینامیک']
|
||||
// },
|
||||
{
|
||||
_name: 'CSidebarNavDropdown',
|
||||
name: 'دانلود ها',
|
||||
// route: {name: 'admin-download'},
|
||||
fontIcon: 'fal fa-arrow-alt-to-bottom',
|
||||
items: [
|
||||
{
|
||||
name: 'لیست',
|
||||
to: {name: 'admin-downloads-page', params: {page: 1}},
|
||||
exact: false
|
||||
},
|
||||
{
|
||||
name: 'دسته بندی ها',
|
||||
to: {name: 'admin-download-categories'}
|
||||
}
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
_name: 'CSidebarNavItem',
|
||||
name: 'آموزش ها',
|
||||
to: {name: 'admin-learning-page', params: {page: 1}},
|
||||
exact: false,
|
||||
icon: 'cil-chart-pie'
|
||||
},
|
||||
{
|
||||
_name: 'CSidebarNavItem',
|
||||
name: 'شرایط گارانتی',
|
||||
to: {name: 'admin-warranty-terms-page', params: {page: 1}},
|
||||
exact: false,
|
||||
fontIcon: 'fal fa-file-alt'
|
||||
},
|
||||
{
|
||||
_name: 'CSidebarNavItem',
|
||||
name: 'سوالات متداول',
|
||||
to: {name: 'admin-FAQ'},
|
||||
exact: false,
|
||||
fontIcon: 'fal fa-graduation-cap'
|
||||
},
|
||||
{
|
||||
_name: 'CSidebarNavItem',
|
||||
name: 'پیام های صفحه تماس با ما',
|
||||
to: {name: 'admin-contact-us'},
|
||||
exact: false,
|
||||
badge: {
|
||||
color: 'primary',
|
||||
// text: this.computed.unreadMessages
|
||||
},
|
||||
fontIcon: 'fal fa-id-card-alt'
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<CChartBar
|
||||
:datasets="defaultDatasets"
|
||||
labels="months"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'CChartBarExample',
|
||||
computed: {
|
||||
defaultDatasets() {
|
||||
return [
|
||||
{
|
||||
label: 'GitHub Commits',
|
||||
backgroundColor: '#f87979',
|
||||
data: [40, 20, 12, 39, 10, 40, 39, 80, 40, 20, 12, 11]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,72 @@
|
||||
<template>
|
||||
<CChartBar
|
||||
:datasets="computedDatasets"
|
||||
:options="computedOptions"
|
||||
:labels="labels"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import CoreUtils from '~/mixins/CoreUtils'
|
||||
|
||||
export default {
|
||||
name: 'CChartBarSimple',
|
||||
mixins: [CoreUtils],
|
||||
props: {
|
||||
datasets: Array,
|
||||
labels: [Array, String],
|
||||
options: Object,
|
||||
plugins: Array,
|
||||
backgroundColor: {
|
||||
type: String,
|
||||
default: 'rgba(0,0,0,.2)'
|
||||
},
|
||||
pointHoverBackgroundColor: String,
|
||||
dataPoints: {
|
||||
type: Array,
|
||||
default: () => [10, 22, 34, 46, 58, 70, 46, 23, 45, 78, 34, 12]
|
||||
},
|
||||
label: {
|
||||
type: String,
|
||||
default: 'Sales'
|
||||
},
|
||||
pointed: Boolean
|
||||
},
|
||||
computed: {
|
||||
defaultDatasets() {
|
||||
return [
|
||||
{
|
||||
data: this.dataPoints,
|
||||
backgroundColor: this.getColor(this.backgroundColor),
|
||||
pointHoverBackgroundColor: this.getColor(this.pointHoverBackgroundColor),
|
||||
label: this.label,
|
||||
barPercentage: 0.5,
|
||||
categoryPercentage: 1
|
||||
}
|
||||
]
|
||||
},
|
||||
defaultOptions() {
|
||||
return {
|
||||
maintainAspectRatio: false,
|
||||
legend: {
|
||||
display: false
|
||||
},
|
||||
scales: {
|
||||
xAxes: [{
|
||||
display: false
|
||||
}],
|
||||
yAxes: [{
|
||||
display: false
|
||||
}]
|
||||
}
|
||||
}
|
||||
},
|
||||
computedDatasets() {
|
||||
return this.deepObjectsMerge(this.defaultDatasets, this.datasets || {})
|
||||
},
|
||||
computedOptions() {
|
||||
return this.deepObjectsMerge(this.defaultOptions, this.options || {})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<CChartDoughnut
|
||||
:datasets="defaultDatasets"
|
||||
:labels="['VueJs', 'EmberJs', 'ReactJs', 'AngularJs']"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'CChartDoughnutExample',
|
||||
computed: {
|
||||
defaultDatasets() {
|
||||
return [
|
||||
{
|
||||
backgroundColor: [
|
||||
'#41B883',
|
||||
'#E46651',
|
||||
'#00D8FF',
|
||||
'#DD1B16'
|
||||
],
|
||||
data: [40, 20, 80, 10]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,28 @@
|
||||
<template>
|
||||
<CChartLine
|
||||
:datasets="defaultDatasets"
|
||||
labels="months"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'CChartLineExample',
|
||||
computed: {
|
||||
defaultDatasets() {
|
||||
return [
|
||||
{
|
||||
label: 'Data One',
|
||||
backgroundColor: 'rgb(228,102,81,0.9)',
|
||||
data: [30, 39, 10, 50, 30, 70, 35]
|
||||
},
|
||||
{
|
||||
label: 'Data Two',
|
||||
backgroundColor: 'rgb(0,216,255,0.9)',
|
||||
data: [39, 80, 40, 35, 40, 20, 45]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,138 @@
|
||||
<template>
|
||||
<CChartLine
|
||||
:datasets="computedDatasets"
|
||||
:options="computedOptions"
|
||||
:labels="labels"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import CoreUtils from '~/mixins/CoreUtils'
|
||||
|
||||
export default {
|
||||
name: 'CChartLineSimple',
|
||||
mixins: [CoreUtils],
|
||||
props: {
|
||||
datasets: Array,
|
||||
labels: [Array, String],
|
||||
options: Object,
|
||||
plugins: Array,
|
||||
borderColor: {
|
||||
type: String,
|
||||
default: 'rgba(255,255,255,.55)'
|
||||
},
|
||||
backgroundColor: {
|
||||
type: String,
|
||||
default: 'transparent'
|
||||
},
|
||||
dataPoints: {
|
||||
type: Array,
|
||||
default: () => [10, 22, 34, 46, 58, 70, 46, 23, 45, 78, 34, 12]
|
||||
},
|
||||
label: {
|
||||
type: String,
|
||||
default: 'Sales'
|
||||
},
|
||||
pointed: Boolean,
|
||||
pointHoverBackgroundColor: String
|
||||
},
|
||||
computed: {
|
||||
pointHoverColor() {
|
||||
if (this.pointHoverBackgroundColor) {
|
||||
return this.pointHoverBackgroundColor
|
||||
} else if (this.backgroundColor !== 'transparent') {
|
||||
return this.backgroundColor
|
||||
}
|
||||
return this.borderColor
|
||||
},
|
||||
defaultDatasets() {
|
||||
return [
|
||||
{
|
||||
data: this.dataPoints,
|
||||
borderColor: this.getColor(this.borderColor),
|
||||
backgroundColor: this.getColor(this.backgroundColor),
|
||||
pointBackgroundColor: this.getColor(this.pointHoverColor),
|
||||
pointHoverBackgroundColor: this.getColor(this.pointHoverColor),
|
||||
label: this.label
|
||||
}
|
||||
]
|
||||
},
|
||||
pointedOptions() {
|
||||
return {
|
||||
scales: {
|
||||
xAxes: [
|
||||
{
|
||||
offset: true,
|
||||
gridLines: {
|
||||
color: 'transparent',
|
||||
zeroLineColor: 'transparent'
|
||||
},
|
||||
ticks: {
|
||||
fontSize: 2,
|
||||
fontColor: 'transparent'
|
||||
}
|
||||
}
|
||||
],
|
||||
yAxes: [
|
||||
{
|
||||
display: false,
|
||||
ticks: {
|
||||
display: false,
|
||||
min: Math.min.apply(Math, this.dataPoints) - 5,
|
||||
max: Math.max.apply(Math, this.dataPoints) + 5
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
elements: {
|
||||
line: {
|
||||
borderWidth: 1
|
||||
},
|
||||
point: {
|
||||
radius: 4,
|
||||
hitRadius: 10,
|
||||
hoverRadius: 4
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
straightOptions() {
|
||||
return {
|
||||
scales: {
|
||||
xAxes: [{
|
||||
display: false
|
||||
}],
|
||||
yAxes: [{
|
||||
display: false
|
||||
}]
|
||||
},
|
||||
elements: {
|
||||
line: {
|
||||
borderWidth: 2
|
||||
},
|
||||
point: {
|
||||
radius: 0,
|
||||
hitRadius: 10,
|
||||
hoverRadius: 4
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
defaultOptions() {
|
||||
const options = this.pointed ? this.pointedOptions : this.straightOptions
|
||||
return Object.assign({}, options, {
|
||||
maintainAspectRatio: false,
|
||||
legend: {
|
||||
display: false
|
||||
}
|
||||
})
|
||||
},
|
||||
computedDatasets() {
|
||||
return this.deepObjectsMerge(this.defaultDatasets, this.datasets || {})
|
||||
},
|
||||
computedOptions() {
|
||||
return this.deepObjectsMerge(this.defaultOptions, this.options || {})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<CChartPie
|
||||
:datasets="defaultDatasets"
|
||||
:labels="['VueJs', 'EmberJs', 'ReactJs', 'AngularJs']"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'CChartPieExample',
|
||||
computed: {
|
||||
defaultDatasets () {
|
||||
return [
|
||||
{
|
||||
backgroundColor: [
|
||||
'#41B883',
|
||||
'#E46651',
|
||||
'#00D8FF',
|
||||
'#DD1B16'
|
||||
],
|
||||
data: [40, 20, 80, 10]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,45 @@
|
||||
<template>
|
||||
<CChartPolarArea
|
||||
:datasets="defaultDatasets"
|
||||
:options="defaultOptions"
|
||||
:labels="[
|
||||
'Eating', 'Drinking', 'Sleeping', 'Designing',
|
||||
'Coding', 'Cycling', 'Running'
|
||||
]"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'CChartPolarAreaExample',
|
||||
computed: {
|
||||
defaultDatasets () {
|
||||
return [
|
||||
{
|
||||
label: 'My First dataset',
|
||||
backgroundColor: 'rgba(179,181,198,0.2)',
|
||||
pointBackgroundColor: 'rgba(179,181,198,1)',
|
||||
pointBorderColor: '#fff',
|
||||
pointHoverBackgroundColor: 'rgba(179,181,198,1)',
|
||||
pointHoverBorderColor: 'rgba(179,181,198,1)',
|
||||
data: [65, 59, 90, 81, 56, 55, 40]
|
||||
},
|
||||
{
|
||||
label: 'My Second dataset',
|
||||
backgroundColor: 'rgba(255,99,132,0.2)',
|
||||
pointBackgroundColor: 'rgba(255,99,132,1)',
|
||||
pointBorderColor: '#fff',
|
||||
pointHoverBackgroundColor: 'rgba(255,99,132,1)',
|
||||
pointHoverBorderColor: 'rgba(255,99,132,1)',
|
||||
data: [28, 48, 40, 19, 96, 27, 100]
|
||||
}
|
||||
]
|
||||
},
|
||||
defaultOptions () {
|
||||
return {
|
||||
aspectRatio: 1.5
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,49 @@
|
||||
<template>
|
||||
<CChartRadar
|
||||
:datasets="defaultDatasets"
|
||||
:options="defaultOptions"
|
||||
:labels="[
|
||||
'Eating', 'Drinking', 'Sleeping', 'Designing',
|
||||
'Coding', 'Cycling', 'Running'
|
||||
]"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'CChartRadarExample',
|
||||
computed: {
|
||||
defaultDatasets() {
|
||||
return [
|
||||
{
|
||||
label: '2019',
|
||||
backgroundColor: 'rgba(179,181,198,0.2)',
|
||||
borderColor: 'rgba(179,181,198,1)',
|
||||
pointBackgroundColor: 'rgba(179,181,198,1)',
|
||||
pointBorderColor: '#fff',
|
||||
pointHoverBackgroundColor: '#fff',
|
||||
pointHoverBorderColor: 'rgba(179,181,198,1)',
|
||||
tooltipLabelColor: 'rgba(179,181,198,1)',
|
||||
data: [65, 59, 90, 81, 56, 55, 40]
|
||||
},
|
||||
{
|
||||
label: '2020',
|
||||
backgroundColor: 'rgba(255,99,132,0.2)',
|
||||
borderColor: 'rgba(255,99,132,1)',
|
||||
pointBackgroundColor: 'rgba(255,99,132,1)',
|
||||
pointBorderColor: '#fff',
|
||||
pointHoverBackgroundColor: '#fff',
|
||||
pointHoverBorderColor: 'rgba(255,99,132,1)',
|
||||
tooltipLabelColor: 'rgba(255,99,132,1)',
|
||||
data: [28, 48, 40, 19, 96, 27, 100]
|
||||
}
|
||||
]
|
||||
},
|
||||
defaultOptions() {
|
||||
return {
|
||||
aspectRatio: 1.5
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,103 @@
|
||||
<template>
|
||||
<CChartLine
|
||||
:datasets="defaultDatasets"
|
||||
:options="defaultOptions"
|
||||
:labels="['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su']"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
// import { CChartLine } from '@coreui/vue-chartjs'
|
||||
// import { getStyle, hexToRgba } from '@coreui/utils/src'
|
||||
import CoreUtils from '~/mixins/CoreUtils'
|
||||
|
||||
function random(min, max) {
|
||||
return Math.floor(Math.random() * (max - min + 1) + min)
|
||||
}
|
||||
|
||||
export default {
|
||||
name: 'MainChartExample',
|
||||
mixins: [CoreUtils],
|
||||
computed: {
|
||||
defaultDatasets() {
|
||||
const brandSuccess = this.getStyle('success2') || '#4dbd74'
|
||||
const brandInfo = this.getStyle('info') || '#20a8d8'
|
||||
const brandDanger = this.getStyle('danger') || '#f86c6b'
|
||||
|
||||
let elements = 27
|
||||
const data1 = []
|
||||
const data2 = []
|
||||
const data3 = []
|
||||
|
||||
for (let i = 0; i <= elements; i++) {
|
||||
data1.push(random(50, 200))
|
||||
data2.push(random(80, 100))
|
||||
data3.push(65)
|
||||
}
|
||||
return [
|
||||
{
|
||||
label: 'My First dataset',
|
||||
backgroundColor: this.hexToRgba(brandInfo, 10),
|
||||
borderColor: brandInfo,
|
||||
pointHoverBackgroundColor: brandInfo,
|
||||
borderWidth: 2,
|
||||
data: data1
|
||||
},
|
||||
{
|
||||
label: 'My Second dataset',
|
||||
backgroundColor: 'transparent',
|
||||
borderColor: brandSuccess,
|
||||
pointHoverBackgroundColor: brandSuccess,
|
||||
borderWidth: 2,
|
||||
data: data2
|
||||
},
|
||||
{
|
||||
label: 'My Third dataset',
|
||||
backgroundColor: 'transparent',
|
||||
borderColor: brandDanger,
|
||||
pointHoverBackgroundColor: brandDanger,
|
||||
borderWidth: 1,
|
||||
borderDash: [8, 5],
|
||||
data: data3
|
||||
}
|
||||
]
|
||||
},
|
||||
defaultOptions() {
|
||||
return {
|
||||
|
||||
maintainAspectRatio: false,
|
||||
legend: {
|
||||
display: false
|
||||
},
|
||||
scales: {
|
||||
xAxes: [{
|
||||
gridLines: {
|
||||
drawOnChartArea: false
|
||||
}
|
||||
}],
|
||||
yAxes: [{
|
||||
ticks: {
|
||||
beginAtZero: true,
|
||||
maxTicksLimit: 5,
|
||||
stepSize: Math.ceil(250 / 5),
|
||||
max: 250
|
||||
},
|
||||
gridLines: {
|
||||
display: true
|
||||
}
|
||||
}]
|
||||
},
|
||||
elements: {
|
||||
point: {
|
||||
radius: 0,
|
||||
hitRadius: 10,
|
||||
hoverRadius: 4,
|
||||
hoverBorderWidth: 3
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
layout: 'admin'
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,175 @@
|
||||
<template>
|
||||
<CRow>
|
||||
<template v-if="!noCharts">
|
||||
<CCol md="3" sm="6">
|
||||
<CWidgetBrand
|
||||
color="facebook"
|
||||
right-header="89k"
|
||||
right-footer="friends"
|
||||
left-header="459"
|
||||
left-footer="feeds"
|
||||
>
|
||||
<CIcon
|
||||
name="cib-facebook"
|
||||
height="52"
|
||||
class="my-4"
|
||||
/>
|
||||
<CChartLineSimple
|
||||
class="c-chart-brand"
|
||||
background-color="rgba(255,255,255,.1)"
|
||||
:data-points="[65, 59, 84, 84, 51, 55, 40]"
|
||||
label="Friends"
|
||||
labels="months"
|
||||
/>
|
||||
</CWidgetBrand>
|
||||
</CCol>
|
||||
<CCol md="3" sm="6">
|
||||
<CWidgetBrand
|
||||
color="twitter"
|
||||
right-header="973k"
|
||||
right-footer="followers"
|
||||
left-header="1.792"
|
||||
left-footer="tweets"
|
||||
>
|
||||
<CIcon
|
||||
name="cib-twitter"
|
||||
height="52"
|
||||
class="my-4"
|
||||
/>
|
||||
<CChartLineSimple
|
||||
class="c-chart-brand"
|
||||
background-color="rgba(255,255,255,.1)"
|
||||
:data-points="[1, 13, 9, 17, 34, 41, 38]"
|
||||
label="Followers"
|
||||
labels="months"
|
||||
/>
|
||||
</CWidgetBrand>
|
||||
</CCol>
|
||||
<CCol md="3" sm="6">
|
||||
<CWidgetBrand
|
||||
color="linkedin"
|
||||
right-header="500+"
|
||||
right-footer="contracts"
|
||||
left-header="292"
|
||||
left-footer="feeds"
|
||||
>
|
||||
<CIcon
|
||||
name="cib-linkedin"
|
||||
height="52"
|
||||
class="my-4"
|
||||
/>
|
||||
<CChartLineSimple
|
||||
class="c-chart-brand"
|
||||
background-color="rgba(255,255,255,.1)"
|
||||
:data-points="[78, 81, 80, 45, 34, 12, 40]"
|
||||
label="Contracts"
|
||||
labels="months"
|
||||
/>
|
||||
</CWidgetBrand>
|
||||
</CCol>
|
||||
<CCol md="3" sm="6">
|
||||
<CWidgetBrand
|
||||
right-header="12"
|
||||
right-footer="events"
|
||||
left-header="4"
|
||||
left-footer="meetings"
|
||||
color="warning"
|
||||
>
|
||||
<CIcon
|
||||
name="cil-calendar"
|
||||
height="52"
|
||||
class="my-4"
|
||||
/>
|
||||
<CChartLineSimple
|
||||
class="c-chart-brand"
|
||||
background-color="rgba(255,255,255,.1)"
|
||||
:data-points="[35, 23, 56, 22, 97, 23, 64]"
|
||||
label="Followers"
|
||||
labels="months"
|
||||
/>
|
||||
</CWidgetBrand>
|
||||
</CCol>
|
||||
</template>
|
||||
<template v-else>
|
||||
<CCol md="3" sm="6">
|
||||
<CWidgetBrand
|
||||
color="facebook"
|
||||
right-header="89k"
|
||||
right-footer="friends"
|
||||
left-header="459"
|
||||
left-footer="feeds"
|
||||
>
|
||||
<CIcon
|
||||
name="cib-facebook"
|
||||
height="56"
|
||||
class="my-4"
|
||||
/>
|
||||
</CWidgetBrand>
|
||||
</CCol>
|
||||
<CCol md="3" sm="6">
|
||||
<CWidgetBrand
|
||||
color="twitter"
|
||||
right-header="973k"
|
||||
right-footer="followers"
|
||||
left-header="1.792"
|
||||
left-footer="tweets"
|
||||
>
|
||||
<CIcon
|
||||
name="cib-twitter"
|
||||
height="56"
|
||||
class="my-4"
|
||||
/>
|
||||
</CWidgetBrand>
|
||||
</CCol>
|
||||
<CCol md="3" sm="6">
|
||||
<CWidgetBrand
|
||||
color="linkedin"
|
||||
right-header="500+"
|
||||
right-footer="contracts"
|
||||
left-header="292"
|
||||
left-footer="feeds"
|
||||
>
|
||||
<CIcon
|
||||
name="cib-linkedin"
|
||||
height="56"
|
||||
class="my-4"
|
||||
/>
|
||||
</CWidgetBrand>
|
||||
</CCol>
|
||||
<CCol md="3" sm="6">
|
||||
<CWidgetBrand
|
||||
right-header="12"
|
||||
right-footer="events"
|
||||
left-header="4"
|
||||
left-footer="meetings"
|
||||
color="warning"
|
||||
>
|
||||
<CIcon
|
||||
name="cil-calendar"
|
||||
height="56"
|
||||
class="my-4"
|
||||
/>
|
||||
</CWidgetBrand>
|
||||
</CCol>
|
||||
</template>
|
||||
</CRow>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: 'WidgetsBrand',
|
||||
props: {
|
||||
noCharts: Boolean
|
||||
},
|
||||
layout: 'admin'
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.c-chart-brand {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100px;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,136 @@
|
||||
<template>
|
||||
<CRow>
|
||||
<CCol sm="6" lg="3">
|
||||
<CWidgetDropdown color="primary" header="9.823" text="Members online">
|
||||
<template #default>
|
||||
<CDropdown
|
||||
color="transparent p-0"
|
||||
placement="bottom-end"
|
||||
>
|
||||
<template #toggler-content>
|
||||
<CIcon name="cil-settings"/>
|
||||
</template>
|
||||
<CDropdownItem>Action</CDropdownItem>
|
||||
<CDropdownItem>Another action</CDropdownItem>
|
||||
<CDropdownItem>Something else here...</CDropdownItem>
|
||||
<CDropdownItem disabled>Disabled action</CDropdownItem>
|
||||
</CDropdown>
|
||||
</template>
|
||||
<template #footer>
|
||||
<CChartLineSimple
|
||||
pointed
|
||||
class="mt-3 mx-3"
|
||||
style="height:70px"
|
||||
:data-points="[65, 59, 84, 84, 51, 55, 40]"
|
||||
point-hover-background-color="primary"
|
||||
label="Members"
|
||||
labels="months"
|
||||
/>
|
||||
</template>
|
||||
</CWidgetDropdown>
|
||||
</CCol>
|
||||
<CCol sm="6" lg="3">
|
||||
<CWidgetDropdown color="info" header="9.823" text="Members online">
|
||||
<template #default>
|
||||
<CDropdown
|
||||
color="transparent p-0"
|
||||
placement="bottom-end"
|
||||
:caret="false"
|
||||
>
|
||||
<template #toggler-content>
|
||||
<CIcon name="cil-location-pin"/>
|
||||
</template>
|
||||
<CDropdownItem>Action</CDropdownItem>
|
||||
<CDropdownItem>Another action</CDropdownItem>
|
||||
<CDropdownItem>Something else here...</CDropdownItem>
|
||||
<CDropdownItem disabled>Disabled action</CDropdownItem>
|
||||
</CDropdown>
|
||||
</template>
|
||||
<template #footer>
|
||||
<CChartLineSimple
|
||||
pointed
|
||||
class="mt-3 mx-3"
|
||||
style="height:70px"
|
||||
:data-points="[1, 18, 9, 17, 34, 22, 11]"
|
||||
point-hover-background-color="info"
|
||||
:options="{ elements: { line: { tension: 0.00001 }}}"
|
||||
label="Members"
|
||||
labels="months"
|
||||
/>
|
||||
</template>
|
||||
</CWidgetDropdown>
|
||||
</CCol>
|
||||
<CCol sm="6" lg="3">
|
||||
<CWidgetDropdown
|
||||
color="warning"
|
||||
header="9.823"
|
||||
text="Members online"
|
||||
>
|
||||
<template #default>
|
||||
<CDropdown
|
||||
color="transparent p-0"
|
||||
placement="bottom-end"
|
||||
>
|
||||
<template #toggler-content>
|
||||
<CIcon name="cil-settings"/>
|
||||
</template>
|
||||
<CDropdownItem>Action</CDropdownItem>
|
||||
<CDropdownItem>Another action</CDropdownItem>
|
||||
<CDropdownItem>Something else here...</CDropdownItem>
|
||||
<CDropdownItem disabled>Disabled action</CDropdownItem>
|
||||
</CDropdown>
|
||||
</template>
|
||||
<template #footer>
|
||||
<CChartLineSimple
|
||||
class="mt-3"
|
||||
style="height:70px"
|
||||
background-color="rgba(255,255,255,.2)"
|
||||
:data-points="[78, 81, 80, 45, 34, 12, 40]"
|
||||
:options="{ elements: { line: { borderWidth: 2.5 }}}"
|
||||
point-hover-background-color="warning"
|
||||
label="Members"
|
||||
labels="months"
|
||||
/>
|
||||
</template>
|
||||
</CWidgetDropdown>
|
||||
</CCol>
|
||||
<CCol sm="6" lg="3">
|
||||
<CWidgetDropdown
|
||||
color="danger"
|
||||
header="9.823"
|
||||
text="Members online"
|
||||
>
|
||||
<template #default>
|
||||
<CDropdown
|
||||
color="transparent p-0"
|
||||
placement="bottom-end"
|
||||
>
|
||||
<template #toggler-content>
|
||||
<CIcon name="cil-settings"/>
|
||||
</template>
|
||||
<CDropdownItem>Action</CDropdownItem>
|
||||
<CDropdownItem>Another action</CDropdownItem>
|
||||
<CDropdownItem>Something else here...</CDropdownItem>
|
||||
<CDropdownItem disabled>Disabled action</CDropdownItem>
|
||||
</CDropdown>
|
||||
</template>
|
||||
<template #footer>
|
||||
<CChartBarSimple
|
||||
class="mt-3 mx-3"
|
||||
style="height:70px"
|
||||
background-color="rgb(250, 152, 152)"
|
||||
label="Members"
|
||||
labels="months"
|
||||
/>
|
||||
</template>
|
||||
</CWidgetDropdown>
|
||||
</CCol>
|
||||
</CRow>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'WidgetsDropdown',
|
||||
layout: 'admin'
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<svg
|
||||
id="tag"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="15"
|
||||
height="14"
|
||||
viewBox="0 0 17 16"
|
||||
>
|
||||
<path
|
||||
id="Shape"
|
||||
d="M5.817,14.68.381,9.261a1.29,1.29,0,0,1,0-1.83L7.457.379A1.3,1.3,0,0,1,8.375,0h5.437a1.3,1.3,0,0,1,1.3,1.292v5.42a1.289,1.289,0,0,1-.381.915c-7.722,7.7-6.7,6.706-7.389,7.276a1.285,1.285,0,0,1-1.525-.223Z"
|
||||
fill="#fff"
|
||||
/>
|
||||
<path
|
||||
id="Path"
|
||||
d="M7.852,0V5.855a.609.609,0,0,1-.19.442L0,13.676l.459.442L8.12,6.739a1.227,1.227,0,0,0,.38-.884V0Z"
|
||||
transform="translate(8.5 1.882)"
|
||||
fill="#fff"
|
||||
/>
|
||||
</svg>
|
||||
</template>
|
||||
@@ -0,0 +1,29 @@
|
||||
<template>
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="18.199"
|
||||
height="14.197"
|
||||
viewBox="0 0 20.199 16.197"
|
||||
>
|
||||
<g
|
||||
id="FireShot_Capture_499_-_Search_results_for_Folder_-_Flaticon_-_www.flaticon.com"
|
||||
data-name="FireShot Capture 499 - Search results for Folder - Flaticon - www.flaticon.com"
|
||||
transform="translate(0.1 0.099)"
|
||||
>
|
||||
<path
|
||||
id="Path"
|
||||
d="M1.536,1.957c0-.191-.009-.4,0-.6A1.4,1.4,0,0,1,2.992.01c1.4-.017,2.8-.008,4.2,0A1.71,1.71,0,0,1,8.708.817a1.614,1.614,0,0,0,1.527.749c.938-.017,1.875-.017,2.813.008.161,0,.313.158.473.25-.152.092-.3.266-.455.266-1.072.025-2.143.017-3.215.008a1.682,1.682,0,0,1-1.482-.79A1.569,1.569,0,0,0,6.85.559c-1.143.025-2.3.008-3.438,0-1.1,0-1.42.349-1.224,1.456H3.1c.8,0,1.608.008,2.411,0a1.816,1.816,0,0,1,1.652.815,1.661,1.661,0,0,0,1.563.757c2.786-.017,5.564-.008,8.35-.008,1.027,0,1.384.333,1.384,1.306,0,2.687.009,5.383,0,8.071,0,.308.027.491.447.483.393-.008.509-.15.509-.5Q19.4,7.885,19.407,2.83c0-.607-.134-.732-.786-.732H15a.782.782,0,0,1-.313-.008,2.334,2.334,0,0,1-.339-.25c.107-.092.214-.258.322-.258,1.456-.017,2.92-.025,4.376.008A.98.98,0,0,1,20,2.622c.009,1.14,0,2.271,0,3.411v6.781c0,.932-.232,1.156-1.215,1.173-.089,0-.17.017-.322.025,0,.366.009.724,0,1.082a.836.836,0,0,1-.965.9q-6.792,0-13.575-.008c-.161,0-.447-.15-.455-.25-.027-.324.277-.291.509-.291q6.564,0,13.128.008c.768,0,.768,0,.768-.707V4.968c0-.749-.089-.824-.9-.832-2.742,0-5.475-.017-8.216.008A2.166,2.166,0,0,1,6.7,3.155a1.263,1.263,0,0,0-1.161-.574c-1.313.008-2.617,0-3.93,0-.688,0-1,.291-1,.948Q.594,9.12.6,14.72c0,.582.143.716.759.716a5.764,5.764,0,0,1,.848.008c.152.025.286.175.429.266-.134.092-.268.25-.42.266a6.35,6.35,0,0,1-.893.017C.438,15.984,0,15.585,0,14.77V3.787C-.009,2.63.3,2.256,1.536,1.957Z"
|
||||
fill="#fff"
|
||||
stroke="#fff"
|
||||
stroke-miterlimit="10"
|
||||
stroke-width="0.2"
|
||||
/>
|
||||
<path
|
||||
id="Shape"
|
||||
d="M.744,1.846C.169,1.84,0,1.7,0,1.233,0,.99,0,.746,0,.5.013.2.221.015.6.008,1.773-.006,2.94,0,4.117.008c.339.007.531.181.54.453.017.3.009.6,0,.9s-.227.467-.6.474c-.575.006-1.141,0-1.707.006Z"
|
||||
transform="translate(2 4.923)"
|
||||
fill="#fff"
|
||||
/>
|
||||
</g>
|
||||
</svg>
|
||||
</template>
|
||||
@@ -0,0 +1,101 @@
|
||||
<template>
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 157.9 81" style="enable-background:new 0 0 157.9 81;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{
|
||||
clip-path: url(#SVGID_2_);
|
||||
}
|
||||
|
||||
.st1{
|
||||
fill: #FFFFFF;
|
||||
}
|
||||
</style>
|
||||
<g>
|
||||
<defs>
|
||||
<rect id="SVGID_1_" x="-379.6" y="-264.3" width="913" height="645.6"/>
|
||||
</defs>
|
||||
<clipPath id="SVGID_2_">
|
||||
<use xlink:href="#SVGID_1_" style="overflow:visible;"/>
|
||||
</clipPath>
|
||||
<g class="st0">
|
||||
<path class="st1" d="M51.1,25.4c-6.7,0-13.1,2.6-17.9,7.2l5.7,5.5c7.1-6.9,18.4-6.8,25.3,0.3c6.7,6.8,6.8,17.8,0.3,24.7l5.7,5.5
|
||||
c9.7-10.4,9-26.8-1.4-36.4C63.8,27.9,57.6,25.4,51.1,25.4"/>
|
||||
<path class="st1" d="M40.5,0C18.1,0,0,18.2,0,40.5S18.1,81,40.5,81c11.1,0,21.7-4.5,29.3-12.5l-5.3-5.2
|
||||
C51.9,76.5,31,77.1,17.7,64.5S3.9,31,16.5,17.7S50,3.9,63.3,16.5c6.6,6.2,10.3,14.9,10.3,24c0,8.5-3.2,16.6-9.1,22.8l5.3,5.2
|
||||
c15.4-16.2,14.8-41.8-1.3-57.2C60.9,4,50.9,0,40.5,0"/>
|
||||
<path class="st1" d="M51.1,69.1c-9.9,0-17.9-8-17.9-17.9c0-4.9,2-9.7,5.6-13l-5.7-5.5c-10.4,9.7-11,26-1.3,36.4s26,11,36.4,1.3
|
||||
c0.6-0.6,1.2-1.1,1.7-1.7l-5.7-5.5C60.9,66.9,56.1,69.1,51.1,69.1"/>
|
||||
<path class="st1" d="M101.2,73c-0.3,0.4-0.6,0.7-1,1c-0.4,0.3-0.8,0.5-1.3,0.5c-0.3,0-0.6-0.1-0.9-0.2c-0.3-0.2-0.5-0.4-0.7-0.6
|
||||
c-0.2,0.7-0.5,1.4-0.9,2.1c-0.8,1.3-2,2.3-3.4,2.9c-0.7,0.3-1.4,0.4-2.2,0.4c-0.7,0-1.4-0.2-1.9-0.7c-0.5-0.5-0.8-1.2-0.7-1.9
|
||||
c0-0.8,0.2-1.5,0.6-2.2c0.4-0.7,0.9-1.3,1.5-1.8c0.6-0.5,1.3-1,2.1-1.3c0.7-0.3,1.5-0.5,2.2-0.5c0.7,0,1.3,0.2,1.9,0.6
|
||||
c0.4,0.4,0.7,0.9,0.8,1.5c0.1,0.4,0.2,0.7,0.5,1c0.3,0.3,0.6,0.4,1,0.4c0.4,0,0.8-0.1,1.1-0.4c0.4-0.3,0.8-0.6,1.1-1L101.2,73z
|
||||
M91,78.8c0.4,0,0.8-0.1,1.1-0.4c0.4-0.3,0.7-0.6,1.1-1c0.3-0.4,0.7-0.9,0.9-1.3c0.3-0.5,0.5-1,0.7-1.5c0.2-0.5,0.4-0.9,0.5-1.4
|
||||
c0.1-0.4,0.2-0.8,0.2-1.1c0-0.3-0.1-0.6-0.2-0.9c-0.2-0.2-0.5-0.3-0.7-0.3c-0.4,0-0.8,0.1-1.1,0.4c-0.4,0.3-0.7,0.6-1.1,1
|
||||
c-0.3,0.4-0.7,0.9-0.9,1.3c-0.3,0.5-0.5,1-0.7,1.5c-0.2,0.5-0.4,0.9-0.5,1.4c-0.1,0.4-0.2,0.8-0.2,1.1c0,0.3,0.1,0.6,0.2,0.9
|
||||
C90.5,78.7,90.7,78.8,91,78.8"/>
|
||||
<path class="st1" d="M114.1,73.1c-0.5,0.6-1,1.3-1.6,2c-0.6,0.7-1.3,1.4-2,1.9c-0.7,0.6-1.5,1.1-2.3,1.5c-0.8,0.4-1.6,0.6-2.4,0.6
|
||||
c-0.6,0-1.1-0.2-1.6-0.5c-0.4-0.4-0.6-0.9-0.7-1.4c-0.3,0.2-0.6,0.5-0.9,0.7c-0.3,0.2-0.7,0.4-1,0.6c-0.4,0.2-0.7,0.3-1.1,0.4
|
||||
c-0.4,0.1-0.8,0.2-1.2,0.1c-0.6,0-1.3-0.1-1.8-0.5c-0.4-0.3-0.6-0.8-0.6-1.4c0-0.4,0.1-0.7,0.3-1c0.2-0.3,0.6-0.5,1-0.4
|
||||
c0.3,0,0.5,0.1,0.7,0.3c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7c-0.2,0.2-0.4,0.3-0.7,0.3c0,0.3,0.1,0.6,0.3,0.8
|
||||
c0.2,0.2,0.5,0.3,0.8,0.3c0.7,0,1.3-0.2,1.9-0.6c0.6-0.4,1.2-1,1.7-1.6c0.5-0.6,0.9-1.3,1.2-2c0.3-0.6,0.4-1.3,0.5-1.9
|
||||
c0-0.3-0.1-0.6-0.2-0.9c-0.2-0.3-0.5-0.4-0.8-0.4c-0.2,0-0.5,0.1-0.7,0.2c-0.2,0.1-0.5,0.3-0.6,0.4c-0.2,0.2-0.4,0.4-0.6,0.6
|
||||
c-0.2,0.2-0.3,0.4-0.5,0.6L101,73c0.2-0.3,0.4-0.5,0.6-0.8c0.2-0.3,0.5-0.5,0.7-0.7c0.3-0.2,0.6-0.4,0.9-0.6
|
||||
c0.3-0.1,0.7-0.2,1.1-0.2c0.5,0,1.1,0.2,1.5,0.5c0.4,0.4,0.6,0.8,0.7,1.3c0.5-0.5,1.1-0.9,1.7-1.3c0.6-0.3,1.3-0.5,2-0.5
|
||||
c0.2,0,0.5,0,0.7,0.1c0.2,0,0.5,0.1,0.7,0.2c0.2,0.1,0.4,0.3,0.5,0.4c0.1,0.2,0.2,0.5,0.2,0.7c0,0.4-0.2,0.8-0.5,1
|
||||
c-0.3,0.2-0.7,0.3-1.1,0.3c-0.1,0-0.3,0-0.4-0.1c0.1-0.2,0.1-0.5,0.2-0.7c0.1-0.3,0.1-0.5,0.1-0.8c0-0.3-0.1-0.5-0.2-0.7
|
||||
c-0.1-0.2-0.3-0.3-0.6-0.3c-0.5,0-0.9,0.2-1.3,0.5c-0.5,0.4-1,0.8-1.4,1.3c-0.4,0.5-0.8,1.1-1.1,1.8c-0.3,0.6-0.4,1.3-0.4,2
|
||||
c0,0.5,0.1,0.9,0.5,1.3c0.4,0.3,0.8,0.4,1.3,0.4c0.7,0,1.3-0.2,1.9-0.6c0.7-0.4,1.3-0.9,1.9-1.4c0.6-0.5,1.2-1.1,1.7-1.7
|
||||
c0.5-0.6,0.9-1.1,1.3-1.5L114.1,73.1z"/>
|
||||
<path class="st1" d="M116.9,71c-0.7,1.1-1.3,2-1.8,2.8s-0.9,1.4-1.2,2s-0.5,1-0.7,1.3c-0.1,0.3-0.2,0.5-0.2,0.8
|
||||
c0,0.1,0,0.3,0.1,0.4c0.1,0.1,0.2,0.2,0.3,0.2c0.4-0.1,0.9-0.2,1.2-0.5c0.7-0.5,1.4-1.1,2-1.7l0.9-1c0.3-0.3,0.6-0.6,0.9-1
|
||||
s0.5-0.6,0.7-0.8l0.5-0.6l0.2,0.1c-0.2,0.2-0.4,0.5-0.6,0.8s-0.5,0.6-0.8,0.9s-0.6,0.7-0.9,1l-0.9,0.9c-0.6,0.7-1.4,1.3-2.2,1.8
|
||||
c-0.5,0.3-1.1,0.5-1.7,0.5c-0.4,0-0.8-0.1-1.1-0.4c-0.3-0.3-0.4-0.6-0.4-1c0-0.3,0.1-0.6,0.2-0.9c0.2-0.4,0.3-0.8,0.6-1.2
|
||||
c0.3-0.5,0.6-1,1-1.7c0.4-0.7,1-1.6,1.6-2.6L116.9,71z M118.2,66.2c0.3,0,0.5,0.1,0.7,0.3c0.2,0.2,0.3,0.4,0.3,0.7
|
||||
c0,0.3-0.1,0.6-0.4,0.8c-0.2,0.2-0.5,0.4-0.8,0.4c-0.3,0-0.6-0.1-0.8-0.3c-0.2-0.2-0.4-0.5-0.4-0.8c0-0.3,0.1-0.6,0.4-0.8
|
||||
C117.6,66.3,117.9,66.2,118.2,66.2"/>
|
||||
<path class="st1" d="M119.8,75l0.9-1.1c0.4-0.5,0.9-1,1.3-1.4c0.5-0.5,1-0.9,1.6-1.2c0.5-0.3,1.1-0.5,1.7-0.5
|
||||
c0.4,0,0.8,0.1,1.1,0.4c0.3,0.3,0.4,0.6,0.4,1c0,0.5-0.2,1.1-0.5,1.5c-0.3,0.5-0.7,1-1,1.6s-0.7,1-1,1.5c-0.3,0.4-0.4,0.8-0.5,1.3
|
||||
c0,0.2,0,0.3,0.1,0.4c0.1,0.1,0.3,0.2,0.4,0.2c0.4-0.1,0.7-0.2,1-0.5c0.7-0.5,1.3-1.1,1.9-1.7c0.6-0.7,1.2-1.3,1.7-2l1.2-1.4
|
||||
l0.2,0.1l-1.4,1.7c-0.6,0.7-1.1,1.3-1.8,2c-0.6,0.6-1.2,1.2-1.9,1.7c-0.5,0.3-1.1,0.5-1.6,0.5c-0.5,0-0.9-0.1-1.2-0.5
|
||||
c-0.3-0.3-0.4-0.7-0.4-1.1c0-0.5,0.2-1.1,0.5-1.5c0.3-0.5,0.6-1,1-1.5c0.4-0.5,0.7-1,1-1.4c0.3-0.3,0.4-0.7,0.5-1.2
|
||||
c0-0.1-0.1-0.3-0.2-0.4c-0.1-0.1-0.3-0.2-0.5-0.2c-0.4,0-0.7,0.2-1,0.4c-0.4,0.3-0.9,0.6-1.3,1c-0.5,0.5-0.9,1-1.3,1.5
|
||||
c-0.4,0.5-0.9,1.1-1.3,1.6s-0.8,1.1-1.1,1.6s-0.6,0.9-0.8,1.3l-2.2,0.1c0.8-1.3,1.6-2.6,2.3-3.8s1.6-2.6,2.3-3.9l2.5-0.1l-2.9,4
|
||||
L119.8,75z"/>
|
||||
<path class="st1" d="M145.2,73.1c-0.5,0.6-1.1,1.3-1.8,2c-0.6,0.7-1.3,1.4-2,1.9c-0.7,0.6-1.5,1.1-2.3,1.4
|
||||
c-0.8,0.4-1.7,0.6-2.6,0.6c-0.7,0-1.5-0.2-2-0.7c-0.5-0.6-0.7-1.3-0.7-2.1c0-0.7,0.2-1.4,0.6-2.1c0.4-0.7,1-1.3,1.6-1.8
|
||||
c0.6-0.5,1.4-1,2.1-1.3c0.7-0.3,1.5-0.5,2.3-0.5c0.6,0,1.1,0.1,1.6,0.4c0.4,0.2,0.6,0.6,0.6,1c0,0.3-0.1,0.5-0.2,0.8
|
||||
c-0.1,0.2-0.2,0.4-0.4,0.6c-0.2,0.2-0.4,0.3-0.6,0.4c-0.2,0.1-0.4,0.1-0.7,0.1c-0.2,0-0.3,0-0.5,0c0.1-0.3,0.2-0.7,0.3-1
|
||||
c0.1-0.3,0.2-0.7,0.2-1c0-0.2-0.1-0.4-0.2-0.6c-0.1-0.1-0.3-0.2-0.5-0.2c-0.5,0-0.9,0.2-1.3,0.4c-0.5,0.3-1,0.7-1.4,1.2
|
||||
c-0.4,0.5-0.8,1.1-1.1,1.6c-0.3,0.6-0.4,1.3-0.4,2c0,0.5,0.2,1,0.5,1.4c0.4,0.4,0.9,0.6,1.4,0.6c0.7,0,1.5-0.2,2.1-0.6
|
||||
c0.7-0.4,1.4-0.9,2-1.4c0.6-0.5,1.2-1.1,1.7-1.8L145,73L145.2,73.1z"/>
|
||||
<path class="st1" d="M155.7,73c-0.3,0.4-0.6,0.7-1,1c-0.4,0.3-0.8,0.5-1.3,0.5c-0.3,0-0.6-0.1-0.9-0.2c-0.3-0.2-0.5-0.4-0.7-0.6
|
||||
c-0.2,0.7-0.5,1.4-0.9,2.1c-0.8,1.3-2,2.3-3.4,2.9c-0.7,0.3-1.4,0.4-2.2,0.4c-0.7,0-1.4-0.2-1.9-0.7c-0.5-0.5-0.8-1.2-0.7-1.9
|
||||
c0-0.8,0.2-1.5,0.6-2.2c0.4-0.7,0.9-1.3,1.5-1.9c0.6-0.5,1.3-1,2.1-1.3c0.7-0.3,1.5-0.5,2.2-0.5c0.7,0,1.3,0.2,1.9,0.6
|
||||
c0.4,0.4,0.7,0.9,0.8,1.5c0.1,0.4,0.2,0.7,0.5,1c0.3,0.3,0.6,0.4,1,0.4c0.4,0,0.8-0.1,1.1-0.4c0.4-0.3,0.8-0.6,1.1-1L155.7,73z
|
||||
M145.5,78.8c0.4,0,0.8-0.1,1.1-0.4c0.4-0.3,0.7-0.6,1.1-1c0.3-0.4,0.7-0.9,0.9-1.3c0.3-0.5,0.5-1,0.7-1.5
|
||||
c0.2-0.5,0.4-0.9,0.5-1.4c0.1-0.4,0.2-0.8,0.2-1.1c0-0.3-0.1-0.6-0.2-0.9c-0.2-0.2-0.5-0.3-0.7-0.3c-0.4,0-0.8,0.1-1.1,0.4
|
||||
c-0.4,0.3-0.7,0.6-1.1,1c-0.3,0.4-0.7,0.9-0.9,1.3c-0.3,0.5-0.5,1-0.7,1.5c-0.2,0.5-0.4,0.9-0.5,1.4c-0.1,0.4-0.2,0.8-0.2,1.1
|
||||
c0,0.3,0.1,0.6,0.2,0.9C144.9,78.7,145.2,78.8,145.5,78.8"/>
|
||||
<path class="st1" d="M153.6,77.6c0-0.7,0.6-1.2,1.2-1.2c0.7,0.1,1.2,0.7,1.1,1.3c-0.1,0.6-0.5,1.1-1.1,1.1c-0.3,0-0.6-0.1-0.9-0.4
|
||||
C153.8,78.3,153.6,78,153.6,77.6"/>
|
||||
<path class="st1" d="M100.9,42.7c1.7,0,3.4,0.4,4.9,1.1c2.3,1,4.1,2.7,5.3,4.9c1,1.8,1.5,3.7,1.5,5.8c0,4.3-2.5,8.2-6.3,10.2
|
||||
c-1.7,0.9-3.5,1.3-5.4,1.3c-4.7-0.1-8.8-2.8-10.7-7.1c-1.4-3.3-1.2-7,0.5-10.2c1.2-2.2,3-3.9,5.3-4.9
|
||||
C97.5,43,99.2,42.7,100.9,42.7 M99.7,43.7l-0.1,10.5l0.1,8.7v2c0.3,0.1,0.7,0.1,1.1,0.1c2.3,0,4.5-0.7,6.3-2
|
||||
c1.7-1.1,2.9-2.8,3.7-4.6c0.5-1.3,0.8-2.7,0.8-4.1c0-1.8-0.5-3.6-1.4-5.2c-1-1.9-2.7-3.4-4.7-4.3c-1.5-0.7-3.1-1.1-4.7-1.1
|
||||
C100.4,43.6,100,43.7,99.7,43.7"/>
|
||||
<path class="st1" d="M123.4,52.7v6.2l0.1,6.4h-8.3v-0.9v-3.3l0.1-5.9l-0.1-6.6v-0.9h8.2V51c0.8-0.9,1.6-1.7,2.6-2.5
|
||||
c0.9-0.7,2-1.1,3.1-1.2c0.5,0,1,0.1,1.5,0.4c0.4,0.2,0.6,0.6,0.6,1c0,0.3-0.1,0.6-0.4,0.8c-0.2,0.2-0.6,0.3-0.9,0.3
|
||||
c-0.3,0-0.5-0.1-0.8-0.2c-0.4-0.2-0.8-0.3-1.2-0.3c-0.8,0-1.6,0.3-2.2,0.8C124.9,50.9,124.1,51.7,123.4,52.7"/>
|
||||
<path class="st1" d="M140.9,47.7v0.5v2.5v3.9v5.9l0.1,3.3v1.4h-8.3l0.1-5.9l0.1-5.2v-2.8l-0.1-3v-0.6L140.9,47.7z M136.7,42.1
|
||||
c2.8,0,4.2,0.7,4.2,2.2c0,0.7-0.4,1.4-1.1,1.7c-1,0.4-2.1,0.7-3.1,0.6c-2.7,0-4-0.8-4-2.3S134,42,136.7,42.1"/>
|
||||
<path class="st1" d="M144.4,62.3c0.3,0.1,0.6,0.2,0.8,0.5c0.7,0.6,1.4,1,2.3,1.3c0.9,0.3,1.8,0.5,2.8,0.5c0.3,0,0.6,0,0.9-0.2
|
||||
c0.2-0.1,0.3-0.4,0.3-0.6c0-0.3-0.2-0.7-0.4-0.9c-0.3-0.4-0.9-1-1.8-2.1c-1.6-1.6-3.1-3.4-4.5-5.2c-0.6-0.8-1-1.8-1-2.9
|
||||
c0-0.8,0.2-1.6,0.7-2.3c0.5-0.8,1.2-1.4,2-1.9c1.4-0.9,3.1-1.3,4.8-1.3c1.4,0,2.8,0.3,4.2,0.8c1.1,0.4,1.7,0.9,1.7,1.4
|
||||
c0,0.2-0.1,0.3-0.2,0.4c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4-0.1-0.8-0.3-1.1-0.6c-1.1-0.8-2.4-1.2-3.7-1.2c-0.4,0-0.7,0-1.1,0.2
|
||||
c-0.2,0.1-0.4,0.4-0.4,0.7c0.1,0.5,0.3,1,0.7,1.4c0.4,0.6,1.4,1.5,2.7,2.8s2.2,2.2,2.5,2.6c0.4,0.4,0.7,0.9,1,1.4
|
||||
c0.6,0.9,0.9,1.9,0.9,2.9c0,1.7-0.9,3.2-2.4,4c-1.4,0.9-3.1,1.3-4.8,1.3c-2,0-3.9-0.5-5.6-1.4c-0.4-0.2-0.7-0.4-1-0.7
|
||||
c-0.2-0.2-0.3-0.4-0.3-0.6c0-0.3,0.2-0.6,0.5-0.6C144.3,62.3,144.4,62.3,144.4,62.3"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</template>
|
||||
@@ -0,0 +1,14 @@
|
||||
<template>
|
||||
<div class="contant">
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
<style lang="scss">
|
||||
.content {
|
||||
background-color: #fff;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,134 @@
|
||||
<template>
|
||||
<!-- <header id="header" :class="routeName === 'lang' ? blogPosts.docs.length ? 'header' : 'header1': 'header1'">-->
|
||||
<header class="header">
|
||||
<div class="site--header">
|
||||
<div class="main-nav container-fluid">
|
||||
<div class="row align-items-stretch">
|
||||
<div class="col-9">
|
||||
<nav>
|
||||
<ul>
|
||||
<nuxt-link :to="{ name: 'lang', params: { lang: $route.params.lang } }" v-slot="{href,navigate,isActive}" exact custom>
|
||||
<li @click="navigate" :class="isActive ? 'active-link' : null">
|
||||
<a :href="href">
|
||||
<img src="/img/logo.svg" alt="">
|
||||
</a>
|
||||
</li>
|
||||
</nuxt-link>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<div class="col-3 d-flex align-items-center justify-content-end">
|
||||
<nuxt-link
|
||||
class="btn-header lang"
|
||||
:to="{ to: $route.fullPath,query: $route.query, params: { lang: $route.params.lang === 'en' ? 'fa' : 'en' } }">
|
||||
{{ $route.params.lang === 'en' ? 'Fa' : 'En' }}
|
||||
</nuxt-link>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
</template>
|
||||
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
drawerVisible: false,
|
||||
scrollPosition: null,
|
||||
blogPosts: null,
|
||||
searching: false,
|
||||
searchableText: '',
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
drawerHandle() {
|
||||
this.drawerVisible = !this.drawerVisible
|
||||
const en = this.$route.params.lang === 'en'
|
||||
this.$gsap.timeline()
|
||||
.fromTo($(".headerDrawer"), {opacity: 0}, {opacity: 1, duration: 1})
|
||||
.fromTo($(".drawer-body ul li"), {x: en ? -100 : 100, opacity: 0}, {x: 0, opacity: 1, duration: 0.2, stagger: 0.1}, 0)
|
||||
.fromTo($(".link8"), {y: 20, opacity: 0}, {y: 0, opacity: 1, duration: .2}, '-=0.3')
|
||||
},
|
||||
updateScroll() {
|
||||
this.scrollPosition = window.scrollY
|
||||
},
|
||||
search(status) {
|
||||
this.searching = status
|
||||
if (status) setTimeout(() => $('#searchInput').focus(), 100)
|
||||
else this.searchableText = ''
|
||||
},
|
||||
doSearch() {
|
||||
// if (this.searchableText.length) {
|
||||
// window.open(`https://www.google.com/search?q=${this.searchableText}+site%3Ahttps%3A//orisoxin.com/`, "_blank");
|
||||
// setTimeout(() => this.search(false), 100)
|
||||
// } else {
|
||||
// this.$message({
|
||||
// type: 'warning',
|
||||
// message: 'ابتدا عبارت مورد نظر را بنویسید'
|
||||
// })
|
||||
// }
|
||||
if (this.searchableText.length) {
|
||||
this.$router.push({name: 'lang-search', params: {lang: this.$route.params.lang}, query: {terms: this.searchableText}})
|
||||
setTimeout(() => this.search(false), 100)
|
||||
} else {
|
||||
this.$message({
|
||||
type: 'warning',
|
||||
message: 'ابتدا عبارت مورد نظر را بنویسید'
|
||||
})
|
||||
}
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
$(document).ready(() => {
|
||||
this.$gsap.timeline()
|
||||
.fromTo($(".site--header"), {opacity: 0}, {opacity: 1, duration: 1})
|
||||
|
||||
$(window).scroll(e => {
|
||||
if ($(window).scrollTop() > 100) {
|
||||
$('.site--header').addClass('hasBG')
|
||||
$('.site--header--drawer').addClass('hasBG')
|
||||
} else {
|
||||
$('.site--header').removeClass('hasBG')
|
||||
}
|
||||
|
||||
// if (window.scrollY > 904 && this.routeName === 'lang' && this.blogPosts.docs.length) $('.header').addClass('_header')
|
||||
// else $('.header').removeClass('_header')
|
||||
// if (window.scrollY < 905 && this.routeName === 'lang' && this.blogPosts.docs.length) $('.header').addClass('__header')
|
||||
// else $('.header').removeClass('__header')
|
||||
})
|
||||
});
|
||||
window.addEventListener('scroll', this.updateScroll);
|
||||
},
|
||||
|
||||
computed: {
|
||||
content() {
|
||||
return this.$store.state.content.header[this.$route.params.lang]
|
||||
},
|
||||
routeName() {
|
||||
return this.$route.name
|
||||
}
|
||||
},
|
||||
|
||||
async fetch() {
|
||||
this.blogPosts = await this.$axios.get('/api/public/blogPosts?category=all&page=1').then(res => res.data)
|
||||
.catch(e => console.log('e', e))
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
.header {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
left: 0;
|
||||
z-index: 5;
|
||||
top: 0;
|
||||
background: white;
|
||||
padding-top: 18px;
|
||||
}
|
||||
.main-nav nav ul li a img {
|
||||
width: 100PX;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<client-only>
|
||||
<div class="c-app flex-row align-items-center">
|
||||
<CContainer>
|
||||
<nuxt/>
|
||||
</CContainer>
|
||||
</div>
|
||||
</client-only>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
head() {
|
||||
return {
|
||||
htmlAttrs: {
|
||||
lang: 'fa',
|
||||
dir: 'rtl'
|
||||
},
|
||||
title: 'ورود به پنل کاربری'
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@import '../assets/admin/scss/style.scss';
|
||||
</style>
|
||||
@@ -0,0 +1,56 @@
|
||||
<template>
|
||||
<client-only>
|
||||
<div class="c-app">
|
||||
<TheSidebar/>
|
||||
<CWrapper>
|
||||
<TheHeader/>
|
||||
<div class="c-body">
|
||||
<main class="c-main">
|
||||
<CContainer fluid class="pt-5">
|
||||
<transition name="fade" mode="out-in">
|
||||
<nuxt :key="$route.path"/>
|
||||
</transition>
|
||||
</CContainer>
|
||||
</main>
|
||||
</div>
|
||||
<TheFooter/>
|
||||
</CWrapper>
|
||||
</div>
|
||||
</client-only>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
subHeaderContent: null
|
||||
}
|
||||
},
|
||||
head() {
|
||||
return {
|
||||
htmlAttrs: {
|
||||
lang: 'fa',
|
||||
dir: 'rtl'
|
||||
},
|
||||
title: 'اُریس اوکسین | پنل مدیریت'
|
||||
}
|
||||
},
|
||||
middleware: ['auth-admin']
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@import '../assets/admin/scss/style.scss';
|
||||
</style>
|
||||
|
||||
<style scoped>
|
||||
.fade-enter-active,
|
||||
.fade-leave-active{
|
||||
transition: opacity 0.3s;
|
||||
}
|
||||
|
||||
.fade-enter,
|
||||
.fade-leave-to{
|
||||
opacity: 0;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<Nuxt/>
|
||||
</div>
|
||||
</template>
|
||||
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<div>
|
||||
<PreLoader />
|
||||
<SiteHeader />
|
||||
<div class="page-wrapper">
|
||||
<Nuxt />
|
||||
</div>
|
||||
<SiteFooter />
|
||||
<PageLoad />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
head() {
|
||||
return {
|
||||
htmlAttrs: {
|
||||
lang: this.$route.params.lang
|
||||
}
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
try {
|
||||
const cover = await this.$axios.get('/api/public/cover')
|
||||
this.$store.commit('global/setCover', cover.data)
|
||||
} catch (err) {
|
||||
console.log('Couldnt fetch cover photos ---- ', err)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,20 @@
|
||||
<template>
|
||||
<div class="error--page">
|
||||
<div v-if="error.statusCode === 404">
|
||||
<h1>404</h1>
|
||||
<p>page not found</p>
|
||||
<nuxt-link to="/">صفحه اصلی</nuxt-link>
|
||||
</div>
|
||||
<div v-else>
|
||||
<h1>{{error.statusCode}}</h1>
|
||||
<p>{{error.message}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: ['error'],
|
||||
layout: 'blank'
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,13 @@
|
||||
<template>
|
||||
<div>
|
||||
<PWAHeader />
|
||||
<Nuxt />
|
||||
<PWAFooter />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {}
|
||||
</script>
|
||||
|
||||
<style></style>
|
||||
@@ -0,0 +1,4 @@
|
||||
export default function ({$auth, redirect}) {
|
||||
if ($auth.loggedIn && $auth.hasScope('admin')) return true
|
||||
else return redirect('/admin/login')
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
export default function ({route, redirect, error}) {
|
||||
///////////// redirect to default local
|
||||
if (route.path === '/') return redirect('/fa')
|
||||
///////////// local check
|
||||
const lang = ['fa', 'en']
|
||||
const isLocal = lang.includes(route.params.lang)
|
||||
const isAdmin = route.path.includes('/admin')
|
||||
|
||||
if (isLocal || isAdmin) return null
|
||||
else error({statusCode: 404, message: 'Page Not Found'})
|
||||
}
|
||||
@@ -0,0 +1,175 @@
|
||||
export default {
|
||||
methods: {
|
||||
getCssCustomProperties() {
|
||||
if (process.client) {
|
||||
const cssCustomProperties = {}
|
||||
const sheets = document.styleSheets
|
||||
let cssText = ''
|
||||
for (let i = sheets.length - 1; i > -1; i--) {
|
||||
const rules = sheets[i].cssRules
|
||||
for (let j = rules.length - 1; j > -1; j--) {
|
||||
if (rules[j].selectorText === '.ie-custom-properties') {
|
||||
// eslint-disable-next-line prefer-destructuring
|
||||
cssText = rules[j].cssText
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
if (cssText) {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
// eslint-disable-next-line unicorn/prefer-string-slice
|
||||
cssText = cssText.substring(
|
||||
cssText.lastIndexOf('{') + 1,
|
||||
cssText.lastIndexOf('}')
|
||||
)
|
||||
|
||||
cssText.split(';').forEach(property => {
|
||||
if (property) {
|
||||
const name = property.split(': ')[0]
|
||||
const value = property.split(': ')[1]
|
||||
if (name && value) {
|
||||
cssCustomProperties[`--${name.trim()}`] = value.trim()
|
||||
}
|
||||
}
|
||||
})
|
||||
return cssCustomProperties
|
||||
} else {
|
||||
return null
|
||||
}
|
||||
},
|
||||
deepObjectsMerge(target, source) {
|
||||
// Iterate through `source` properties and if an `Object` set property to merge of `target` and `source` properties
|
||||
for (const key of Object.keys(source)) {
|
||||
if (source[key] instanceof Object) {
|
||||
Object.assign(source[key], this.deepObjectsMerge(target[key], source[key]))
|
||||
}
|
||||
}
|
||||
|
||||
// Join `target` and modified `source`
|
||||
Object.assign(target || {}, source)
|
||||
return target
|
||||
},
|
||||
getColor(rawProperty, element = process.client ? document.body : null) {
|
||||
const property = `--${rawProperty}`
|
||||
const style = this.getStyle(property, element)
|
||||
return style ? style : rawProperty
|
||||
},
|
||||
getStyle(property, element = process.client ? document.body : null) {
|
||||
if (process.client) {
|
||||
const minIEVersion = 10
|
||||
const isIE1x = () => Boolean(document.documentMode) && document.documentMode >= minIEVersion
|
||||
const isCustomProperty = property => property.match(/^--.*/i)
|
||||
///
|
||||
let style
|
||||
|
||||
if (isCustomProperty(property) && isIE1x()) {
|
||||
const cssCustomProperties = this.getCssCustomProperties()
|
||||
style = cssCustomProperties[property]
|
||||
} else {
|
||||
style = window.getComputedStyle(element, null).getPropertyValue(property).replace(/^\s/, '')
|
||||
}
|
||||
|
||||
return style
|
||||
} else {
|
||||
return null
|
||||
}
|
||||
},
|
||||
hexToRgb(color) {
|
||||
if (typeof color === 'undefined') {
|
||||
throw new TypeError('Hex color is not defined')
|
||||
}
|
||||
|
||||
const hex = color.match(/^#(?:[0-9a-f]{3}){1,2}$/i)
|
||||
|
||||
if (!hex) {
|
||||
throw new Error(`${color} is not a valid hex color`)
|
||||
}
|
||||
|
||||
let r
|
||||
let g
|
||||
let b
|
||||
|
||||
if (color.length === 7) {
|
||||
r = parseInt(color.slice(1, 3), 16)
|
||||
g = parseInt(color.slice(3, 5), 16)
|
||||
b = parseInt(color.slice(5, 7), 16)
|
||||
} else {
|
||||
r = parseInt(color.slice(1, 2), 16)
|
||||
g = parseInt(color.slice(2, 3), 16)
|
||||
b = parseInt(color.slice(3, 5), 16)
|
||||
}
|
||||
|
||||
return `rgba(${r}, ${g}, ${b})`
|
||||
},
|
||||
hexToRgba(color, opacity = 100) {
|
||||
if (typeof color === 'undefined') {
|
||||
throw new TypeError('Hex color is not defined')
|
||||
}
|
||||
|
||||
const hex = color.match(/^#(?:[0-9a-f]{3}){1,2}$/i)
|
||||
|
||||
if (!hex) {
|
||||
throw new Error(`${color} is not a valid hex color`)
|
||||
}
|
||||
|
||||
let r
|
||||
let g
|
||||
let b
|
||||
|
||||
if (color.length === 7) {
|
||||
r = parseInt(color.slice(1, 3), 16)
|
||||
g = parseInt(color.slice(3, 5), 16)
|
||||
b = parseInt(color.slice(5, 7), 16)
|
||||
} else {
|
||||
r = parseInt(color.slice(1, 2), 16)
|
||||
g = parseInt(color.slice(2, 3), 16)
|
||||
b = parseInt(color.slice(3, 5), 16)
|
||||
}
|
||||
|
||||
return `rgba(${r}, ${g}, ${b}, ${opacity / 100})`
|
||||
},
|
||||
makeUid() {
|
||||
const key = Math.random().toString(36).substr(2)
|
||||
return 'uid-' + key
|
||||
},
|
||||
omitByKeys(originalObject, keys) {
|
||||
var newObj = {}
|
||||
var objKeys = Object.keys(originalObject)
|
||||
for (var i = 0; i < objKeys.length; i++) {
|
||||
!keys.includes(objKeys[i]) && (newObj[objKeys[i]] = originalObject[objKeys[i]])
|
||||
}
|
||||
return newObj
|
||||
},
|
||||
pickByKeys(originalObject, keys) {
|
||||
var newObj = {}
|
||||
for (var i = 0; i < keys.length; i++) {
|
||||
newObj[keys[i]] = originalObject[keys[i]]
|
||||
}
|
||||
return newObj
|
||||
},
|
||||
rgbToHex(color) {
|
||||
if (typeof color === 'undefined') {
|
||||
throw new TypeError('Hex color is not defined')
|
||||
}
|
||||
|
||||
if (color === 'transparent') {
|
||||
return '#00000000'
|
||||
}
|
||||
|
||||
const rgb = color.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i)
|
||||
|
||||
if (!rgb) {
|
||||
throw new Error(`${color} is not a valid rgb color`)
|
||||
}
|
||||
|
||||
const r = `0${parseInt(rgb[1], 10).toString(16)}`
|
||||
const g = `0${parseInt(rgb[2], 10).toString(16)}`
|
||||
const b = `0${parseInt(rgb[3], 10).toString(16)}`
|
||||
|
||||
return `#${r.slice(-2)}${g.slice(-2)}${b.slice(-2)}`
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
const minimumDataSize = 100 //size unit = kilobytes (kb)
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
axiosConfig: {
|
||||
onUploadProgress: progressEvent => {
|
||||
if (progressEvent.total / 1024 > minimumDataSize) {
|
||||
const text = 'درحال آپلود '
|
||||
const uploadLayout = this.$loading({
|
||||
lock: true,
|
||||
text: text,
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
})
|
||||
document.querySelector('.el-loading-text').innerText = text + Math.floor(((progressEvent.loaded / progressEvent.total) * 100)) + '%'
|
||||
if ((progressEvent.loaded / progressEvent.total) * 100 === 100) {
|
||||
uploadLayout.close()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
export default {
|
||||
mounted() {
|
||||
this.checkMessages()
|
||||
},
|
||||
methods: {
|
||||
checkMessages() {
|
||||
if (this.$auth.loggedIn) {
|
||||
this.$axios.get('/api/admin/contactUsMessages')
|
||||
.then(res => {
|
||||
let unreadCount = res.data.filter(item => !item.read)
|
||||
this.$store.commit('admin/set', ['unreadMessagesCount', unreadCount.length])
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
const webpack = require('webpack');
|
||||
const serverport = 3711
|
||||
export default {
|
||||
head: {
|
||||
title: 'OrisOxin',
|
||||
meta: [
|
||||
{ charset: 'utf-8' },
|
||||
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
||||
{ hid: 'description', name: 'description', content: '' }
|
||||
],
|
||||
link: [
|
||||
{ rel: 'icon', type: 'image/png', href: '/favicon.png' },
|
||||
{ rel: 'stylesheet', type: 'text/css', href: '/css/bootstrap-grid.min.css' },
|
||||
{ rel: 'stylesheet', type: 'text/css', href: '/css/reset-css.css' },
|
||||
{ rel: 'stylesheet', type: 'text/css', href: '/css/fontawesome/css/all.min.css' },
|
||||
{ rel: 'stylesheet', type: 'text/css', href: '/js/lightBox/simple-lightbox.min.css' }
|
||||
],
|
||||
script: [{ src: '/js/lightBox/simple-lightbox.min.js' }]
|
||||
},
|
||||
css: [
|
||||
'element-ui/lib/theme-chalk/index.css',
|
||||
'slick-carousel/slick/slick.css',
|
||||
'slick-carousel/slick/slick-theme.css',
|
||||
'@/assets/scss/main.scss'
|
||||
],
|
||||
plugins: [
|
||||
'@/plugins/element-ui',
|
||||
'@/plugins/gsap.client',
|
||||
'@/plugins/core-ui.client',
|
||||
'@/plugins/ckEditor.client',
|
||||
'@/plugins/vueNetworkShare'
|
||||
],
|
||||
components: ['~/components/', { path: '~/components/admin/', prefix: '' }],
|
||||
buildModules: ['@nuxtjs/pwa'],
|
||||
modules: [
|
||||
'@nuxtjs/axios',
|
||||
'@nuxtjs/auth-next'
|
||||
],
|
||||
pwa: {
|
||||
manifest: {
|
||||
name: 'محاسبه وزن',
|
||||
short_name: 'orisOxin cal',
|
||||
description: false,
|
||||
lang: 'fa',
|
||||
useWebmanifestExtension: false,
|
||||
start_url: '/fa/pwa'
|
||||
},
|
||||
meta: {
|
||||
mobileAppIOS: true,
|
||||
name: 'اریس اکسین'
|
||||
},
|
||||
workbox: {
|
||||
cleanupOutdatedCaches: true
|
||||
}
|
||||
},
|
||||
build: {
|
||||
transpile: [/^element-ui/],
|
||||
plugins: [
|
||||
new webpack.ProvidePlugin({
|
||||
$: 'jquery',
|
||||
jQuery: 'jquery',
|
||||
'window.jQuery': 'jquery'
|
||||
})
|
||||
],
|
||||
splitChunks: {
|
||||
layouts: true
|
||||
},
|
||||
babel: {
|
||||
plugins: [['@babel/plugin-proposal-private-methods', { loose: true }]]
|
||||
},
|
||||
},
|
||||
|
||||
axios: {
|
||||
proxy: true
|
||||
},
|
||||
proxy: {
|
||||
'/api': { target: `http://0.0.0.0:${serverport}` }
|
||||
},
|
||||
router: {
|
||||
linkActiveClass: 'active-link',
|
||||
middleware: ['redirects']
|
||||
},
|
||||
serverMiddleware: ['~/server/index.js'],
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
port: 3000
|
||||
},
|
||||
|
||||
auth: {
|
||||
strategies: {
|
||||
local: {
|
||||
token: {
|
||||
property: 'token',
|
||||
required: true,
|
||||
type: ''
|
||||
},
|
||||
user: {
|
||||
property: 'user',
|
||||
autoFetch: true
|
||||
},
|
||||
endpoints: {
|
||||
login: { url: '/api/auth/login', method: 'post' },
|
||||
logout: { url: '/api/auth/logout', method: 'delete' },
|
||||
user: { url: '/api/auth/user', method: 'get' }
|
||||
}
|
||||
}
|
||||
},
|
||||
redirect: false
|
||||
},
|
||||
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"name": "orixoxin",
|
||||
"version": "1.0.0",
|
||||
"private": false,
|
||||
"scripts": {
|
||||
"nodemon": "nodemon --watch server --exec \"nuxt start\"",
|
||||
"nodemonDev": "nodemon --watch server --exec \"nuxt\"",
|
||||
"dev": "nuxt",
|
||||
"build": "nuxt build",
|
||||
"start": "nuxt start",
|
||||
"generate": "nuxt generate"
|
||||
},
|
||||
"dependencies": {
|
||||
"@coreui/coreui": "^3.2.2",
|
||||
"@coreui/icons": "^2.0.0-beta.5",
|
||||
"@coreui/utils": "^1.3.1",
|
||||
"@coreui/vue": "^3.1.2",
|
||||
"@coreui/vue-chartjs": "^1.0.5",
|
||||
"@nuxtjs/auth": "^4.9.1",
|
||||
"@nuxtjs/auth-next": "5.0.0-1618898588.9655d0e",
|
||||
"@nuxtjs/axios": "^5.13.1",
|
||||
"bcryptjs": "^2.4.3",
|
||||
"ckeditor4-vue": "^1.3.0",
|
||||
"core-js": "^3.9.1",
|
||||
"element-ui": "^2.15.1",
|
||||
"express": "^4.17.1",
|
||||
"express-fileupload": "^1.2.1",
|
||||
"express-validator": "^6.10.1",
|
||||
"gsap": "^3.6.1",
|
||||
"jquery": "^3.6.0",
|
||||
"jsonwebtoken": "^8.5.1",
|
||||
"moment-jalaali": "^0.9.2",
|
||||
"mongoose": "^5.12.5",
|
||||
"mongoose-paginate-v2": "^1.3.18",
|
||||
"nodemailer": "^6.6.5",
|
||||
"nodemon": "^3.1.4",
|
||||
"nuxt": "^2.15.3",
|
||||
"read-excel-file": "^5.2.10",
|
||||
"sass": "^1.77.6",
|
||||
"scroll-to-element": "^2.0.3",
|
||||
"sharp": "^0.28.1",
|
||||
"slick-carousel": "^1.8.1",
|
||||
"vue-social-sharing": "^3.0.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nuxt/types": "^2.15.8",
|
||||
"@nuxtjs/pwa": "^3.3.5",
|
||||
"sass-loader": "^10.1.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,573 @@
|
||||
<template>
|
||||
<div class="about-page page">
|
||||
<!---------------------------------- Section 1 ------------------------------------->
|
||||
<section class="s1-Img-BG">
|
||||
<div
|
||||
class="parallax"
|
||||
:style="{
|
||||
background: `linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),url(${cover ? cover : defaultCover})`
|
||||
}"
|
||||
>
|
||||
<h1 class="h1 s1-title anim-fadeIn" :style="{ color: $route.params.lang === 'fa' && '#fff' }">
|
||||
{{ content.s1.t1 }}
|
||||
</h1>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 2 ------------------------------------->
|
||||
<section class="s2-BG">
|
||||
<div class="parallax">
|
||||
<div class="row">
|
||||
<div class="col-12 col-xl-6 col-lg-6 col-md-12 col-sm-12 img paddingCol">
|
||||
<img src="/img/AboutPage/_MG_9506.png" alt="" />
|
||||
</div>
|
||||
<div class="col-12 col-xl-6 col-lg-6 col-md-12 col-sm-12 d-flex align-items-center descImg">
|
||||
<div class="container anim-fadeInStagger">
|
||||
<div class="descContainer section">
|
||||
<h2 class="h2 staggerItem">{{ content.s2.t1 }}</h2>
|
||||
<p class="description staggerItem">
|
||||
{{ content.s2.t2 }}
|
||||
</p>
|
||||
<h6 class="h6 staggerItem">{{ content.s2.t3 }}</h6>
|
||||
<div class="col-12 staggerItem">
|
||||
<div class="row">
|
||||
<!-- <div class="col-12 col-xl-6 col-lg-6 col-md-12 col-sm-12 paddingCol">-->
|
||||
<div class="features col-12 col-lg-6">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t4 }}</p>
|
||||
</div>
|
||||
<div class="features col-12 col-lg-6">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t5 }}</p>
|
||||
</div>
|
||||
<div class="features col-12 col-lg-6">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t6 }}</p>
|
||||
</div>
|
||||
<!-- </div>-->
|
||||
<!-- <div class="col-12 col-xl-6 col-lg-6 col-md-12 col-sm-12 paddingCol">-->
|
||||
<div class="features col-12 col-lg-6">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t7 }}</p>
|
||||
</div>
|
||||
<div class="features col-12 col-lg-6">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t8 }}</p>
|
||||
</div>
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 3 ------------------------------------->
|
||||
<section class="s3-BG">
|
||||
<div class="parallax">
|
||||
<!-- <div class="container-fluid">-->
|
||||
<div class="row align-items-center">
|
||||
<div class="col-12 col-xl-6 col-lg-6 col-md-12 col-sm-12 s3-col1 paddingCol">
|
||||
<div class="container anim-fadeInStagger">
|
||||
<h2 class="h2 staggerItem">{{ content.s3.t1 }}</h2>
|
||||
<p class="description staggerItem">
|
||||
{{ content.s3.t2 }}
|
||||
</p>
|
||||
<nuxt-link
|
||||
:to="{
|
||||
name: 'lang-activities',
|
||||
params: { lang: $route.params.lang }
|
||||
}"
|
||||
class="staggerItem"
|
||||
>{{ content.s3.t3 }}</nuxt-link
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-xl-6 col-lg-6 col-md-12 col-sm-12 s3-col2 paddingCol">
|
||||
<div class="container-fluid anim-fadeInStagger">
|
||||
<div class="col-12 features-body">
|
||||
<nuxt-link
|
||||
:to="{
|
||||
name: 'lang-activities-piping',
|
||||
params: { lang: $route.params.lang }
|
||||
}"
|
||||
>
|
||||
<div class="features staggerItem">
|
||||
<img src="/img/AboutPage/piping.png" alt="" />
|
||||
<div>
|
||||
<h6 class="h6">{{ content.s3.t6 }}</h6>
|
||||
<span>
|
||||
{{ content.s3.t7 }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</nuxt-link>
|
||||
<nuxt-link
|
||||
:to="{
|
||||
name: 'lang-activities-drilling',
|
||||
params: { lang: $route.params.lang }
|
||||
}"
|
||||
>
|
||||
<div class="features staggerItem">
|
||||
<img src="/img/AboutPage/1111.png" alt="" />
|
||||
<div>
|
||||
<h6 class="h6">{{ content.s3.t12 }}</h6>
|
||||
<span>
|
||||
{{ content.s3.t13 }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</nuxt-link>
|
||||
<nuxt-link
|
||||
:to="{
|
||||
name: 'lang-activities-ward',
|
||||
params: { lang: $route.params.lang }
|
||||
}"
|
||||
>
|
||||
<div class="features staggerItem">
|
||||
<img src="/img/AboutPage/petrochemical.png" alt="" />
|
||||
<div>
|
||||
<h6 class="h6">{{ content.s3.t4 }}</h6>
|
||||
<span>
|
||||
{{ content.s3.t5 }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</nuxt-link>
|
||||
<nuxt-link
|
||||
:to="{
|
||||
name: 'lang-activities-sm',
|
||||
params: { lang: $route.params.lang }
|
||||
}"
|
||||
>
|
||||
<div class="features staggerItem">
|
||||
<img src="/img/AboutPage/2222.png" alt="" />
|
||||
<div>
|
||||
<h6 class="h6">{{ content.s3.t10 }}</h6>
|
||||
<span>
|
||||
{{ content.s3.t11 }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</nuxt-link>
|
||||
<nuxt-link
|
||||
:to="{
|
||||
name: 'lang-activities-srp',
|
||||
params: { lang: $route.params.lang }
|
||||
}"
|
||||
>
|
||||
<div class="features staggerItem">
|
||||
<img src="/img/AboutPage/excavation.png" alt="" />
|
||||
<div>
|
||||
<h6 class="h6">{{ content.s3.t8 }}</h6>
|
||||
<span>
|
||||
{{ content.s3.t9 }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</nuxt-link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- <!–-------------------------------- Section 4 -----------------------------------–>-->
|
||||
<!-- <section class="s4-BG">-->
|
||||
<!-- <div class="parallax section">-->
|
||||
<!-- <div class="container">-->
|
||||
<!-- <div class="row">-->
|
||||
<!-- <div class="col-12 col-md-12 col-lg-6 s4-col1 anim-fadeInStagger">-->
|
||||
<!-- <h2 class="h2 staggerItem">{{ content.s4.t1 }}</h2>-->
|
||||
<!-- <span class="staggerItem">-->
|
||||
<!-- {{ content.s4.t2 }}-->
|
||||
<!-- </span>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="col-12 col-md-12 col-lg-6 s4-col2" v-if="projectCat.length > 0">-->
|
||||
<!-- <div class="progress"-->
|
||||
<!-- v-for="item in projectCat"-->
|
||||
<!-- :key="item._id"-->
|
||||
<!-- >-->
|
||||
<!-- <div class="d-flex justify-content-between">-->
|
||||
<!-- <span>{{ item.locale[$route.params.lang].name }}</span>-->
|
||||
<!-- <span>{{ getPercentage(item) }}%</span>-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- <div class="progress-Parent">-->
|
||||
<!-- <div class="progress-Child anim-progress"-->
|
||||
<!-- :style="{width: `${projects.filter(e => e.category._id === item.id).length * 100 / projects.length}%`}"></div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- <div class="col-12 col-md-12 col-lg-6 s4-col3" v-else>-->
|
||||
<!-- <h6 class="h6 notFound">{{ content.s4.t3 }}</h6>-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </section>-->
|
||||
|
||||
<!---------------------------------- Section 5 ------------------------------------->
|
||||
<!-- <section class="s5-Img-BG">-->
|
||||
<!-- <div class="parallax section">-->
|
||||
<!-- <div class="container">-->
|
||||
<!-- <div class="title anim-fadeIn">-->
|
||||
<!-- <h1 class="h2">{{ content.s5.t1 }}</h1>-->
|
||||
<!-- <h1 class="h2">{{ content.s5.t2 }}</h1>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="row anim-fadeIn" v-if="projectCat.length > 0">-->
|
||||
<!-- <div class="col-12 col-lg-4 mb-3" v-for="cat in projectCat" :key="cat._id">-->
|
||||
<!-- <h1 class="h1 s5-num1 anim-number">{{-->
|
||||
<!-- projects.filter(item => {-->
|
||||
<!-- if (item.category._id) return item.category._id === cat._id-->
|
||||
<!-- }).length-->
|
||||
<!-- }}</h1>-->
|
||||
<!-- <span>{{ cat.locale[$route.params.lang].name }}</span>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- <div class="row" v-else>-->
|
||||
<!-- <div class="col-12">-->
|
||||
<!-- <h6 class="h4 notFound1">{{ content.s5.t3 }}</h6>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </section>-->
|
||||
|
||||
<!---------------------------------- Section 6 ------------------------------------->
|
||||
<section class="s6-BG">
|
||||
<div class="parallax section">
|
||||
<div class="container">
|
||||
<h2 class="h2 s6-h1-title anim-fadeIn">{{ content.s6.t1 }}</h2>
|
||||
<div class="row s6-team" v-if="team.length > 0">
|
||||
<div class="col-12 col-sm-6 col-lg-3 mb-3 anim-fadeIn" v-for="item in team" :key="item._id">
|
||||
<div class="team-View">
|
||||
<img
|
||||
:src="item.image"
|
||||
:alt="item.locale[$route.params.lang].first_name + ' ' + item.locale[$route.params.lang].last_name"
|
||||
/>
|
||||
<div class="title-Img">
|
||||
<p>
|
||||
{{ item.locale[$route.params.lang].first_name + ' ' + item.locale[$route.params.lang].last_name }}
|
||||
</p>
|
||||
<span>{{ item.locale[$route.params.lang].position }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" v-else>
|
||||
<div class="col-12 s6-notFound">
|
||||
<h6 class="h6 notFound">{{ content.s6.t2 }}</h6>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 6 ------------------------------------->
|
||||
<section class="s11-BG">
|
||||
<div class="parallax section">
|
||||
<div class="container-fluid">
|
||||
<h2 class="h2 s11-h1-title anim-fadeIn">{{ content.s11.t1 }}</h2>
|
||||
<div class="row s11-chart">
|
||||
<div class="col-12 mb-3 anim-fadeIn">
|
||||
<img src="/img/chart.jpg" alt="" v-if="$route.params.lang === 'fa'" />
|
||||
<img src="/img/Chart-Latin.jpg" alt="" v-if="$route.params.lang === 'en'" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 7 ------------------------------------->
|
||||
<section class="s7-BG">
|
||||
<div class="parallax">
|
||||
<div class="row">
|
||||
<div class="col-12 s7-view-title">
|
||||
<h2 class="h2 s7-title anim-fadeIn">{{ content.s7.t3 }}</h2>
|
||||
</div>
|
||||
<div class="col-12 col-lg-6 order-1 order-lg-0 s7-Body paddingCol">
|
||||
<div class="container s7-body-row anim-fadeInStagger">
|
||||
<div class="s7-Title staggerItem">
|
||||
<h6 class="h6">{{ content.s7.t1 }}</h6>
|
||||
</div>
|
||||
<div class="s7-desc staggerItem">
|
||||
<span>{{ content.s7.t2 }}</span>
|
||||
</div>
|
||||
<img src="/img/LogoCompany/5.png" alt="" />
|
||||
<el-button type="text" @click="dialogVisible1 = true" class="staggerItemSeeBTN">
|
||||
{{ content.s7.t4 }}
|
||||
</el-button>
|
||||
|
||||
<el-dialog title="" :visible.sync="dialogVisible1" width="23%" center>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<img src="/img/AboutPage/GTC.png" :alt="content.s7.t1" width="100%" />
|
||||
</div>
|
||||
</div>
|
||||
<el-button @click="dialogVisible1 = false">{{ content.s7.t5 }}</el-button>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-lg-6 order-0 order-lg-1 paddingCol">
|
||||
<div class="s7-Img">
|
||||
<img src="/img/AboutPage/gtc.jpg" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 8 ------------------------------------->
|
||||
<section class="s8-BG">
|
||||
<div class="parallax">
|
||||
<div class="row">
|
||||
<div class="col-12 col-lg-6 paddingCol">
|
||||
<div class="s8-Img">
|
||||
<img src="/img/AboutPage/npa.jpg" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-lg-6 s8-Body paddingCol">
|
||||
<div class="container s8-body-row anim-fadeInStagger">
|
||||
<div class="s8-Title staggerItem">
|
||||
<h6 class="h6">{{ content.s8.t1 }}</h6>
|
||||
</div>
|
||||
<div class="s8-desc staggerItem">
|
||||
<span>{{ content.s8.t2 }}</span>
|
||||
</div>
|
||||
|
||||
<!-- <div class="s8-Title staggerItem">-->
|
||||
<!-- <h6 class="h6">{{ content.s8.t3 }}</h6>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="s8-desc staggerItem">-->
|
||||
<!-- <span>{{ content.s8.t4 }}</span>-->
|
||||
<!-- </div>-->
|
||||
<img src="/img/LogoCompany/4.png" alt="" />
|
||||
<el-button type="text" @click="dialogVisible2 = true" class="staggerItemSeeBTN">
|
||||
{{ content.s7.t4 }}
|
||||
</el-button>
|
||||
|
||||
<el-dialog title="" :visible.sync="dialogVisible2" width="50%" center>
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-6">
|
||||
<img src="/img/AboutPage/Engemasa1.png" :alt="content.s7.t1" width="100%" />
|
||||
</div>
|
||||
<div class="col-12 col-md-6">
|
||||
<img src="/img/AboutPage/Engemasa2.png" :alt="content.s7.t1" width="100%" />
|
||||
</div>
|
||||
</div>
|
||||
<el-button @click="dialogVisible2 = false">{{ content.s7.t5 }}</el-button>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 9 ------------------------------------->
|
||||
<section class="s9-BG">
|
||||
<div class="parallax">
|
||||
<div class="row">
|
||||
<div class="col-12 col-lg-6 order-1 order-lg-0 s9-Body paddingCol">
|
||||
<div class="container s9-body-row anim-fadeInStagger">
|
||||
<div class="s9-Title staggerItem">
|
||||
<h6 class="h6">{{ content.s9.t1 }}</h6>
|
||||
</div>
|
||||
<div class="s9-desc staggerItem">
|
||||
<span>{{ content.s9.t2 }}</span>
|
||||
</div>
|
||||
<img src="/img/LogoCompany/3.png" alt="" />
|
||||
<el-button type="text" @click="dialogVisible3 = true" class="staggerItemSeeBTN">
|
||||
{{ content.s7.t4 }}
|
||||
</el-button>
|
||||
|
||||
<el-dialog title="" :visible.sync="dialogVisible3" width="23%" center>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<img src="/img/AboutPage/Hj.png" :alt="content.s7.t1" width="100%" />
|
||||
</div>
|
||||
</div>
|
||||
<el-button @click="dialogVisible3 = false">{{ content.s7.t5 }}</el-button>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-lg-6 order-0 order-lg-1 paddingCol">
|
||||
<div class="s9-Img">
|
||||
<img src="/img/AboutPage/metal.jpg" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 10 ------------------------------------->
|
||||
<section class="s10-BG">
|
||||
<div class="parallax">
|
||||
<div class="row">
|
||||
<div class="col-12 col-lg-6 paddingCol">
|
||||
<div class="s10-Img">
|
||||
<img src="/img/AboutPage/wonjin.jpeg" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-lg-6 s10-Body paddingCol">
|
||||
<div class="container s10-body-row anim-fadeInStagger">
|
||||
<div class="s10-Title staggerItem">
|
||||
<h6 class="h6">{{ content.s10.t1 }}</h6>
|
||||
</div>
|
||||
<div class="s10-desc staggerItem">
|
||||
<span>{{ content.s10.t2 }}</span>
|
||||
</div>
|
||||
<img src="/img/LogoCompany/2.png" alt="" />
|
||||
<el-button type="text" @click="dialogVisible4 = true" class="staggerItemSeeBTN">
|
||||
{{ content.s7.t4 }}
|
||||
</el-button>
|
||||
|
||||
<el-dialog title="" :visible.sync="dialogVisible4" width="23%" center>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<img src="/img/AboutPage/WONJIN.png" :alt="content.s7.t1" width="100%" />
|
||||
</div>
|
||||
</div>
|
||||
<el-button @click="dialogVisible4 = false">{{ content.s7.t5 }}</el-button>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 12 logo company ------------------------------------->
|
||||
<!-- <section class="s12-BG">-->
|
||||
<!-- <div class="parallax">-->
|
||||
<!-- <h2>مشتریان ما</h2>-->
|
||||
<!-- <div class="row">-->
|
||||
<!-- <div class="col-12 col-md-4">-->
|
||||
<!-- <img src="/img/LogoCompany/logo1.png" alt="">-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="col-12 col-md-4">-->
|
||||
<!-- <img src="/img/LogoCompany/logo2.png" alt="">-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="col-12 col-md-4">-->
|
||||
<!-- <img src="/img/LogoCompany/logo3.png" alt="">-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="col-12 col-md-4">-->
|
||||
<!-- <img src="/img/LogoCompany/logo4.png" alt="">-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="col-12 col-md-4">-->
|
||||
<!-- <img src="/img/LogoCompany/logo5.png" alt="">-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </section>-->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
fadeInAnimation,
|
||||
fadeInStaggerAnimation,
|
||||
leftToRightAnimation,
|
||||
leftToRightStaggerAnimation,
|
||||
numberAnimation,
|
||||
progressAnimation
|
||||
} from '~/utils/animations'
|
||||
|
||||
export default {
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
fadeInAnimation(this.$gsap)
|
||||
leftToRightAnimation(this.$gsap)
|
||||
fadeInStaggerAnimation(this.$gsap)
|
||||
leftToRightStaggerAnimation(this.$gsap)
|
||||
numberAnimation(this.$gsap)
|
||||
progressAnimation(this.$gsap)
|
||||
//--------------------------------------------------------- Section 1
|
||||
this.$gsap
|
||||
.timeline({
|
||||
scrollTrigger: {
|
||||
trigger: '.s2-BG',
|
||||
scrub: true,
|
||||
start: 'top top'
|
||||
}
|
||||
})
|
||||
.to($('.s1-Img-BG .parallax'), {
|
||||
duration: 9,
|
||||
opacity: 0,
|
||||
y: '50%'
|
||||
})
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
lineRed() {
|
||||
this.projects.length
|
||||
},
|
||||
getPercentage(item) {
|
||||
return Math.floor(
|
||||
(this.projects.filter(e => {
|
||||
if (e.category._id) return e.category._id === item.id
|
||||
}).length *
|
||||
100) /
|
||||
this.projects.length
|
||||
)
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
team: null,
|
||||
projects: null,
|
||||
projectCat: null,
|
||||
dialogVisible1: false,
|
||||
dialogVisible2: false,
|
||||
dialogVisible3: false,
|
||||
dialogVisible4: false,
|
||||
defaultCover: '/img/AboutPage/page-title.png'
|
||||
}
|
||||
},
|
||||
async asyncData({ $axios, error }) {
|
||||
try {
|
||||
const allData = await Promise.all([
|
||||
// fetch team [0]
|
||||
$axios.get('/api/public/teams'),
|
||||
// fetch projects [1]
|
||||
$axios.get('/api/public/projects'),
|
||||
// fetch project categories [2]
|
||||
$axios.get('/api/public/projectCategories')
|
||||
])
|
||||
const team = allData[0]
|
||||
const projects = allData[1]
|
||||
const projectCat = allData[2]
|
||||
|
||||
return {
|
||||
team: team.data,
|
||||
projects: projects.data,
|
||||
projectCat: projectCat.data
|
||||
}
|
||||
} catch (e) {
|
||||
error({ status: 500, message: 'there is a problem here' })
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
content() {
|
||||
return this.$store.state.content.about[this.$route.params.lang]
|
||||
},
|
||||
cover() {
|
||||
return this.$store.state.global.cover?.aboutUS
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
.about-page span {
|
||||
display: block;
|
||||
text-align: justify;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,165 @@
|
||||
<template>
|
||||
<div class="activities-details-page page">
|
||||
<!---------------------------------- Section 1 ------------------------------------->
|
||||
<section class="s1-Img-BG">
|
||||
<div
|
||||
class="parallax"
|
||||
:style="{
|
||||
background: `linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),url(${cover ? cover : defaultCover})`
|
||||
}"
|
||||
>
|
||||
<h1 class="h1 anim-fadeIn" :style="{ color: $route.params.lang === 'fa' && '#fff' }">{{ content.s1.t1 }}</h1>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 2 ------------------------------------->
|
||||
<section class="s2-Img-BG">
|
||||
<div class="parallax">
|
||||
<div class="row">
|
||||
<div class="col-12 centerItem s2-item">
|
||||
<div class="s2-body">
|
||||
<div class="container anim-fadeInStagger">
|
||||
<div class="_s2-Desc-View">
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t1 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t2 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t3 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t4 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t5 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t6 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t7 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t8 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t9 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t10 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t11 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t12 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t13 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t14 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t15 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t16 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t17 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t18 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t19 }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a class="btn btn-primary" href="./../../../static/DEISEL.pdf" download="">دانلود pdf</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
fadeInAnimation,
|
||||
fadeInStaggerAnimation,
|
||||
leftToRightAnimation,
|
||||
leftToRightStaggerAnimation,
|
||||
numberAnimation,
|
||||
progressAnimation
|
||||
} from '@/utils/animations'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
defaultCover: '/img/ActivitiesPage/page-title.png'
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
fadeInAnimation(this.$gsap)
|
||||
leftToRightAnimation(this.$gsap)
|
||||
fadeInStaggerAnimation(this.$gsap)
|
||||
leftToRightStaggerAnimation(this.$gsap)
|
||||
numberAnimation(this.$gsap)
|
||||
progressAnimation(this.$gsap)
|
||||
//--------------------------------------------------------- Section 1
|
||||
this.$gsap
|
||||
.timeline({
|
||||
scrollTrigger: {
|
||||
trigger: '.s2-Img-BG',
|
||||
scrub: true,
|
||||
start: 'top top'
|
||||
}
|
||||
})
|
||||
.to($('.s1-Img-BG .parallax'), {
|
||||
duration: 9,
|
||||
opacity: 0,
|
||||
y: '50%'
|
||||
})
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
goDown(element) {
|
||||
this.$gsap.to(window, { scrollTo: element, duration: 0.7 })
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
content() {
|
||||
return this.$store.state.content.dieselConnex[this.$route.params.lang]
|
||||
},
|
||||
cover() {
|
||||
return this.$store.state.global.cover?.activity
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,159 @@
|
||||
<template>
|
||||
<div class="activities-details-page page">
|
||||
<!---------------------------------- Section 1 ------------------------------------->
|
||||
<section class="s1-Img-BG">
|
||||
<div
|
||||
class="parallax"
|
||||
:style="{
|
||||
background: `linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),url(${cover ? cover : defaultCover})`
|
||||
}"
|
||||
>
|
||||
<h1 class="h1 anim-fadeIn" :style="{ color: $route.params.lang === 'fa' && '#fff' }">
|
||||
{{ content.s1.t1 }}
|
||||
</h1>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 2 ------------------------------------->
|
||||
<section class="s2-Img-BG">
|
||||
<div class="parallax">
|
||||
<div class="row">
|
||||
<div class="col-12 col-lg-6 s2-item">
|
||||
<img src="/img/ActivitiesPage/DetailsPage/api.jpg" alt="" class="s2-img" />
|
||||
</div>
|
||||
<div class="col-12 col-lg-6 centerItem s2-item">
|
||||
<div class="s2-body">
|
||||
<div class="container anim-fadeInStagger">
|
||||
<div class="row">
|
||||
<div class="s2-body-desc staggerItem mb-3">
|
||||
<p>
|
||||
{{ content.s2.t1 }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- <div class="_s2-Desc-View">-->
|
||||
<!-- <div class="check">-->
|
||||
<!-- <i class="fas fa-check-circle"></i>-->
|
||||
<!-- <p>-->
|
||||
<!-- {{ content.s2.t2 }}-->
|
||||
<!-- </p>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="check">-->
|
||||
<!-- <i class="fas fa-check-circle"></i>-->
|
||||
<!-- <p>-->
|
||||
<!-- {{ content.s2.t3 }}-->
|
||||
<!-- </p>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="check">-->
|
||||
<!-- <i class="fas fa-check-circle"></i>-->
|
||||
<!-- <p>-->
|
||||
<!-- {{ content.s2.t4 }}-->
|
||||
<!-- </p>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
|
||||
<template>
|
||||
<el-table ref="singleTable" :data="tableData" border style="width: 100%">
|
||||
<el-table-column property="v1" width="120"></el-table-column>
|
||||
<el-table-column property="v2" :label="content.s2.t6"></el-table-column>
|
||||
<el-table-column property="v3" :label="content.s2.t7"></el-table-column>
|
||||
<el-table-column property="v4" :label="content.s2.t8"></el-table-column>
|
||||
</el-table>
|
||||
</template>
|
||||
|
||||
<div class="view_input">
|
||||
<SheetWCM mini whiteTxt />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
fadeInAnimation,
|
||||
fadeInStaggerAnimation,
|
||||
leftToRightAnimation,
|
||||
leftToRightStaggerAnimation,
|
||||
numberAnimation,
|
||||
progressAnimation
|
||||
} from '@/utils/animations'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
defaultCover: '/img/ActivitiesPage/page-title.png'
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
fadeInAnimation(this.$gsap)
|
||||
leftToRightAnimation(this.$gsap)
|
||||
fadeInStaggerAnimation(this.$gsap)
|
||||
leftToRightStaggerAnimation(this.$gsap)
|
||||
numberAnimation(this.$gsap)
|
||||
progressAnimation(this.$gsap)
|
||||
//--------------------------------------------------------- Section 1
|
||||
this.$gsap
|
||||
.timeline({
|
||||
scrollTrigger: {
|
||||
trigger: '.s2-Img-BG',
|
||||
scrub: true,
|
||||
start: 'top top'
|
||||
}
|
||||
})
|
||||
.to($('.s1-Img-BG .parallax'), {
|
||||
duration: 9,
|
||||
opacity: 0,
|
||||
y: '50%'
|
||||
})
|
||||
|
||||
this.tableData[
|
||||
{
|
||||
date: this.content.s2.t9
|
||||
}
|
||||
]
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
goDown(element) {
|
||||
this.$gsap.to(window, { scrollTo: element, duration: 0.7 })
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
content() {
|
||||
return this.$store.state.content.drilling[this.$route.params.lang]
|
||||
},
|
||||
cover() {
|
||||
return this.$store.state.global.cover?.activity
|
||||
},
|
||||
tableData() {
|
||||
return [
|
||||
{
|
||||
v1: this.content.s2.t9,
|
||||
v2: this.content.s2.t12,
|
||||
v3: this.content.s2.t13,
|
||||
v4: this.content.s2.t14
|
||||
},
|
||||
{
|
||||
v1: this.content.s2.t10,
|
||||
v2: this.content.s2.t15,
|
||||
v3: this.content.s2.t16,
|
||||
v4: this.content.s2.t17
|
||||
},
|
||||
{
|
||||
v1: this.content.s2.t11,
|
||||
v2: this.content.s2.t18,
|
||||
v3: this.content.s2.t19,
|
||||
v4: this.content.s2.t20
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,148 @@
|
||||
<template>
|
||||
<div class="activities-page page">
|
||||
<!---------------------------------- Section 1 ------------------------------------->
|
||||
<section class="s1-Img-BG">
|
||||
<div
|
||||
class="parallax d-flex align-items-center flex-column justify-content-center"
|
||||
:style="{
|
||||
background: `linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),url(${cover ? cover : defaultCover})`
|
||||
}"
|
||||
>
|
||||
<h1 class="h1 anim-fadeIn" :style="{ color: $route.params.lang === 'fa' && '#fff' }">{{ content.s1.t1 }}</h1>
|
||||
<span class="anim-fadeIn">
|
||||
{{ content.s1.t2 }}
|
||||
</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 2 ------------------------------------->
|
||||
<section class="s2-BG section">
|
||||
<div class="parallax">
|
||||
<div class="container">
|
||||
<div class="row anim-fadeIn">
|
||||
<div class="col-12 col-sm-6 col-lg-4 s2-align-col anim-fadeIn">
|
||||
<div class="s2-item">
|
||||
<nuxt-link :to="{ name: 'lang-activities-piping', params: { lang: $route.params.lang } }">
|
||||
<img src="/img/ActivitiesPage/piping.jpg" alt="" />
|
||||
<div class="s2-body">
|
||||
<StrokedTxt text="01" />
|
||||
<h4 class="h4">{{ content.s2.t1 }}</h4>
|
||||
</div>
|
||||
</nuxt-link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-sm-6 col-lg-4 s2-align-col anim-fadeIn">
|
||||
<div class="s2-item">
|
||||
<nuxt-link :to="{ name: 'lang-activities-drilling', params: { lang: $route.params.lang } }">
|
||||
<img src="/img/ActivitiesPage/drill.jpg" alt="" />
|
||||
<div class="s2-body">
|
||||
<StrokedTxt text="02" />
|
||||
<h4 class="h4">{{ content.s2.t2 }}</h4>
|
||||
</div>
|
||||
</nuxt-link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-sm-6 col-lg-4 s2-align-col anim-fadeIn">
|
||||
<div class="s2-item">
|
||||
<nuxt-link :to="{ name: 'lang-activities-ward', params: { lang: $route.params.lang } }">
|
||||
<img src="/img/ActivitiesPage/petro.jpg" alt="" />
|
||||
<div class="s2-body">
|
||||
<StrokedTxt text="03" />
|
||||
<h4 class="h4">{{ content.s2.t3 }}</h4>
|
||||
</div>
|
||||
</nuxt-link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-sm-6 col-lg-4 s2-align-col anim-fadeIn">
|
||||
<div class="s2-item">
|
||||
<nuxt-link :to="{ name: 'lang-activities-sm', params: { lang: $route.params.lang } }">
|
||||
<img src="/img/ActivitiesPage/Salt.jpg" alt="" />
|
||||
<div class="s2-body">
|
||||
<StrokedTxt text="04" />
|
||||
<h4 class="h4">{{ content.s2.t4 }}</h4>
|
||||
</div>
|
||||
</nuxt-link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-sm-6 col-lg-4 s2-align-col anim-fadeIn">
|
||||
<div class="s2-item">
|
||||
<nuxt-link :to="{ name: 'lang-activities-srp', params: { lang: $route.params.lang } }">
|
||||
<img src="/img/ActivitiesPage/faraz.jpg" alt="" />
|
||||
<div class="s2-body">
|
||||
<StrokedTxt text="05" />
|
||||
<h4 class="h4">{{ content.s2.t5 }}</h4>
|
||||
</div>
|
||||
</nuxt-link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { fadeInAnimation, fadeInStaggerAnimation } from '~/utils/animations'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
defaultCover: '/img/ActivitiesPage/page-title.png'
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
fadeInAnimation(this.$gsap)
|
||||
fadeInStaggerAnimation(this.$gsap)
|
||||
//--------------------------------------------------------- Section 1
|
||||
this.$gsap
|
||||
.timeline({
|
||||
scrollTrigger: {
|
||||
trigger: '.s2-BG',
|
||||
scrub: true,
|
||||
start: 'top top'
|
||||
}
|
||||
})
|
||||
.to($('.s1-Img-BG > div'), {
|
||||
duration: 9,
|
||||
opacity: 0,
|
||||
y: '50%'
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
computed: {
|
||||
content() {
|
||||
return this.$store.state.content.activities[this.$route.params.lang]
|
||||
},
|
||||
cover() {
|
||||
return this.$store.state.global.cover?.activity
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.activities-page .s2-BG .parallax .container .s2-align-col .s2-item .s2-body {
|
||||
padding: 13px 25px;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
background: #00000075;
|
||||
min-height: 138px;
|
||||
width: 100%;
|
||||
}
|
||||
.activities-page .s2-BG .parallax .container .s2-align-col .s2-item {
|
||||
width: auto;
|
||||
margin-bottom: 25px;
|
||||
background-color: #888585;
|
||||
direction: ltr;
|
||||
text-align: left;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,120 @@
|
||||
<template>
|
||||
<div class="activities-details-page page">
|
||||
<!---------------------------------- Section 1 ------------------------------------->
|
||||
<section class="s1-Img-BG">
|
||||
<div
|
||||
class="parallax"
|
||||
:style="{
|
||||
background: `linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),url(${cover ? cover : defaultCover})`
|
||||
}"
|
||||
>
|
||||
<h1 class="h1 anim-fadeIn" :style="{ color: $route.params.lang === 'fa' && '#fff' }">
|
||||
{{ content.s1.t1 }}
|
||||
</h1>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 2 ------------------------------------->
|
||||
<section class="s2-Img-BG">
|
||||
<div class="parallax">
|
||||
<div class="row">
|
||||
<div class="col-12 col-lg-6 s2-item">
|
||||
<img src="/img/ActivitiesPage/DetailsPage/erw.jpg" alt="" class="s2-img" />
|
||||
</div>
|
||||
<div class="col-12 col-lg-6 centerItem s2-item">
|
||||
<div class="s2-body">
|
||||
<div class="container anim-fadeInStagger">
|
||||
<div class="row">
|
||||
<div class="col-12 s2-body-desc staggerItem mb-3">
|
||||
<p>
|
||||
{{ content.s2.t1 }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<template>
|
||||
<el-table :data="tableData" border style="width: 100%">
|
||||
<el-table-column prop="v1" :label="content.s2.t14"> </el-table-column>
|
||||
<el-table-column prop="v2" :label="content.s2.t7"> </el-table-column>
|
||||
<el-table-column prop="v3" :label="content.s2.t8"> </el-table-column>
|
||||
<el-table-column prop="v4" :label="content.s2.t9"> </el-table-column>
|
||||
</el-table>
|
||||
</template>
|
||||
|
||||
<div class="view_input">
|
||||
<PipeWCM mini whiteTxt />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
fadeInAnimation,
|
||||
fadeInStaggerAnimation,
|
||||
leftToRightAnimation,
|
||||
leftToRightStaggerAnimation,
|
||||
numberAnimation,
|
||||
progressAnimation
|
||||
} from '@/utils/animations'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
defaultCover: '/img/ActivitiesPage/page-title.png'
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
fadeInAnimation(this.$gsap)
|
||||
leftToRightAnimation(this.$gsap)
|
||||
fadeInStaggerAnimation(this.$gsap)
|
||||
leftToRightStaggerAnimation(this.$gsap)
|
||||
numberAnimation(this.$gsap)
|
||||
progressAnimation(this.$gsap)
|
||||
//--------------------------------------------------------- Section 1
|
||||
this.$gsap
|
||||
.timeline({
|
||||
scrollTrigger: {
|
||||
trigger: '.s2-Img-BG',
|
||||
scrub: true,
|
||||
start: 'top top'
|
||||
}
|
||||
})
|
||||
.to($('.s1-Img-BG .parallax'), {
|
||||
duration: 9,
|
||||
opacity: 0,
|
||||
y: '50%'
|
||||
})
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
goDown(element) {
|
||||
this.$gsap.to(window, { scrollTo: element, duration: 0.7 })
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
content() {
|
||||
return this.$store.state.content.piping[this.$route.params.lang]
|
||||
},
|
||||
cover() {
|
||||
return this.$store.state.global.cover?.activity
|
||||
},
|
||||
tableData() {
|
||||
return [
|
||||
{
|
||||
v1: this.content.s2.t13,
|
||||
v2: this.content.s2.t10,
|
||||
v3: this.content.s2.t11,
|
||||
v4: this.content.s2.t12
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,275 @@
|
||||
<template>
|
||||
<div class="activities-details-page page">
|
||||
<!---------------------------------- Section 1 ------------------------------------->
|
||||
<section class="s1-Img-BG">
|
||||
<div
|
||||
class="parallax"
|
||||
:style="{
|
||||
background: `linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),url(${cover ? cover : defaultCover})`
|
||||
}"
|
||||
>
|
||||
<h1 class="h1 anim-fadeIn" :style="{ color: $route.params.lang === 'fa' && '#fff' }">{{ content.s1.t1 }}</h1>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 2 ------------------------------------->
|
||||
<section class="s2-Img-BG">
|
||||
<div class="parallax">
|
||||
<div class="row">
|
||||
<div class="col-12 col-lg-6 s2-item">
|
||||
<img src="/img/ActivitiesPage/DetailsPage/skid.jpg" alt="" class="s2-img" />
|
||||
</div>
|
||||
<div class="col-12 col-lg-6 centerItem s2-item">
|
||||
<div class="s2-body">
|
||||
<div class="container anim-fadeInStagger">
|
||||
<div class="row">
|
||||
<div class="s2-body-desc staggerItem">
|
||||
<p>
|
||||
{{ content.s2.t1 }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="s2-Desc-View staggerItem">
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-6 paddingCol">
|
||||
<div class="check" @click="goDown('.p1')">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>
|
||||
{{ content.s2.t2 }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-md-6 paddingCol">
|
||||
<div class="check" @click="goDown('.p2')">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>
|
||||
{{ content.s2.t3 }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="col-12 col-md-6 paddingCol">-->
|
||||
<!-- <div class="check" @click="goDown('.p3')">-->
|
||||
<!-- <i class="fas fa-check-circle"></i>-->
|
||||
<!-- <p>-->
|
||||
<!-- {{ content.s2.t4 }}-->
|
||||
<!-- </p>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<div class="col-12 col-md-6 paddingCol">
|
||||
<div class="check" @click="goDown('.p4')">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>
|
||||
{{ content.s2.t5 }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-md-6 paddingCol">
|
||||
<div class="check" @click="goDown('.p4')">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>
|
||||
{{ content.s2.t6 }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-md-6 paddingCol">
|
||||
<div class="check" @click="goDown('.p4')">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>
|
||||
{{ content.s2.t7 }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-md-6 paddingCol">
|
||||
<div class="check" @click="goDown('.p4')">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>
|
||||
{{ content.s2.t8 }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="s2-body-desc2 staggerItem">
|
||||
<p>
|
||||
{{ content.s2.t9 }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 3 ------------------------------------->
|
||||
<!-- <section class="s3-BG section">-->
|
||||
<!-- <div class="container">-->
|
||||
<!-- <div class="row">-->
|
||||
|
||||
<!-- <div class="col-12 item reverse anim-fadeInStagger p1 paddingCol">-->
|
||||
<!-- <div class="row staggerItem">-->
|
||||
<!-- <div class="col-12 col-md-7 paddingCol">-->
|
||||
<!-- <img-->
|
||||
<!-- src="/img/ActivitiesPage/DetailsPage/drilling1.jpg"-->
|
||||
<!-- alt=""-->
|
||||
<!-- />-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- <div class="col-12 col-md-5 d-flex flex-column justify-content-center paddingCol">-->
|
||||
<!-- <div class="txt">-->
|
||||
<!-- <h6 class="h6">-->
|
||||
<!-- {{ content.s3.t1 }}-->
|
||||
<!-- </h6>-->
|
||||
|
||||
<!-- <ul class="list2">-->
|
||||
<!-- <li><i class="fas fa-check"></i> {{ content.s3.t2 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i> {{ content.s3.t3 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i> {{ content.s3.t4 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i> {{ content.s3.t5 }}</li>-->
|
||||
<!-- </ul>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- <div class="col-12 item anim-fadeInStagger p2 paddingCol">-->
|
||||
<!-- <div class="row staggerItem">-->
|
||||
<!-- <div class="col-12 col-md-7 paddingCol">-->
|
||||
<!-- <img-->
|
||||
<!-- src="/img/ActivitiesPage/DetailsPage/drilling2.jpg"-->
|
||||
<!-- alt=""-->
|
||||
<!-- />-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- <div class="col-12 col-md-5 d-flex flex-column justify-content-center paddingCol">-->
|
||||
<!-- <div class="txt">-->
|
||||
<!-- <h6 class="h6">{{ content.s4.t1 }}</h6>-->
|
||||
|
||||
<!-- <ul class="list2">-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t1 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t2 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t3 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t4 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t5 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t6 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t7 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t8 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t9 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t10 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t11 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t12 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t13 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t14 }}</li>-->
|
||||
<!-- </ul>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- <div class="col-12 item reverse anim-fadeInStagger p3 paddingCol">-->
|
||||
<!-- <div class="row staggerItem">-->
|
||||
<!-- <div class="col-12 col-md-7 paddingCol">-->
|
||||
<!-- <img-->
|
||||
<!-- src="/img/ActivitiesPage/DetailsPage/drilling3.jpg"-->
|
||||
<!-- alt=""-->
|
||||
<!-- />-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- <div class="col-12 col-md-5 d-flex flex-column justify-content-center paddingCol">-->
|
||||
<!-- <div class="txt">-->
|
||||
<!-- <h6 class="h6">-->
|
||||
<!-- {{ content.s5.t1 }}-->
|
||||
<!-- </h6>-->
|
||||
|
||||
<!-- <ul class="list2">-->
|
||||
<!-- <li><i class="fas fa-check"></i> {{ content.s5.t2 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i> {{ content.s5.t3 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i> {{ content.s5.t4 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i> {{ content.s5.t5 }}</li>-->
|
||||
<!-- </ul>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="col-12 item descBottom p4 paddingCol">-->
|
||||
<!-- <div class="container">-->
|
||||
<!-- <div class="row">-->
|
||||
<!-- <div class="col-12 paddingCol">-->
|
||||
<!-- <div class="txt">-->
|
||||
<!-- <h6 class="h6 mb-5">-->
|
||||
<!-- {{ content.s6.t1 }}-->
|
||||
<!-- </h6>-->
|
||||
|
||||
<!-- <p>-->
|
||||
<!-- {{ content.s6.t2 }}-->
|
||||
<!-- </p>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- </section>-->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
fadeInAnimation,
|
||||
fadeInStaggerAnimation,
|
||||
leftToRightAnimation,
|
||||
leftToRightStaggerAnimation,
|
||||
numberAnimation,
|
||||
progressAnimation
|
||||
} from '@/utils/animations'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
defaultCover: '/img/ActivitiesPage/page-title.png'
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
fadeInAnimation(this.$gsap)
|
||||
leftToRightAnimation(this.$gsap)
|
||||
fadeInStaggerAnimation(this.$gsap)
|
||||
leftToRightStaggerAnimation(this.$gsap)
|
||||
numberAnimation(this.$gsap)
|
||||
progressAnimation(this.$gsap)
|
||||
})
|
||||
//--------------------------------------------------------- Section 1
|
||||
this.$gsap
|
||||
.timeline({
|
||||
scrollTrigger: {
|
||||
trigger: '.s2-Img-BG',
|
||||
scrub: true,
|
||||
start: 'top top'
|
||||
}
|
||||
})
|
||||
.to($('.s1-Img-BG .parallax'), {
|
||||
duration: 9,
|
||||
opacity: 0,
|
||||
y: '50%'
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
goDown(element) {
|
||||
this.$gsap.to(window, { scrollTo: element, duration: 0.7 })
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
content() {
|
||||
return this.$store.state.content.skid[this.$route.params.lang]
|
||||
},
|
||||
cover() {
|
||||
return this.$store.state.global.cover?.activity
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,233 @@
|
||||
<template>
|
||||
<div class="activities-details-page page">
|
||||
<!---------------------------------- Section 1 ------------------------------------->
|
||||
<section class="s1-Img-BG">
|
||||
<div
|
||||
class="parallax"
|
||||
:style="{
|
||||
background: `linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),url(${cover ? cover : defaultCover})`
|
||||
}"
|
||||
>
|
||||
<h1 class="h1 anim-fadeIn" :style="{ color: $route.params.lang === 'fa' && '#fff' }">{{ content.s1.t1 }}</h1>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 2 ------------------------------------->
|
||||
<section class="s2-Img-BG">
|
||||
<div class="parallax">
|
||||
<div class="row">
|
||||
<div class="col-12 col-lg-6 s2-item">
|
||||
<img src="/img/ActivitiesPage/DetailsPage/srp.jpg" alt="" class="s2-img" />
|
||||
</div>
|
||||
<div class="col-12 col-lg-6 centerItem s2-item">
|
||||
<div class="s2-body">
|
||||
<div class="container anim-fadeInStagger">
|
||||
<div class="row">
|
||||
<div class="s2-body-desc staggerItem">
|
||||
<p>{{ content.s2.t1 }}</p>
|
||||
<p>{{ content.s2.t6 }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="_s2-Desc-View">
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>
|
||||
{{ content.s2.t2 }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>
|
||||
{{ content.s2.t3 }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>
|
||||
{{ content.s2.t4 }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>
|
||||
{{ content.s2.t5 }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 3 ------------------------------------->
|
||||
<!-- <section class="s3-BG section">-->
|
||||
<!-- <div class="container">-->
|
||||
<!-- <div class="row">-->
|
||||
|
||||
<!-- <div class="col-12 item reverse anim-fadeInStagger p1 paddingCol">-->
|
||||
<!-- <div class="row staggerItem">-->
|
||||
<!-- <div class="col-12 col-md-7 paddingCol">-->
|
||||
<!-- <img-->
|
||||
<!-- src="/img/ActivitiesPage/DetailsPage/drilling1.jpg"-->
|
||||
<!-- alt=""-->
|
||||
<!-- />-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- <div class="col-12 col-md-5 d-flex flex-column justify-content-center paddingCol">-->
|
||||
<!-- <div class="txt">-->
|
||||
<!-- <h6 class="h6">-->
|
||||
<!-- {{ content.s3.t1 }}-->
|
||||
<!-- </h6>-->
|
||||
|
||||
<!-- <ul class="list2">-->
|
||||
<!-- <li><i class="fas fa-check"></i> {{ content.s3.t2 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i> {{ content.s3.t3 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i> {{ content.s3.t4 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i> {{ content.s3.t5 }}</li>-->
|
||||
<!-- </ul>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- <div class="col-12 item anim-fadeInStagger p2 paddingCol">-->
|
||||
<!-- <div class="row staggerItem">-->
|
||||
<!-- <div class="col-12 col-md-7 paddingCol">-->
|
||||
<!-- <img-->
|
||||
<!-- src="/img/ActivitiesPage/DetailsPage/drilling2.jpg"-->
|
||||
<!-- alt=""-->
|
||||
<!-- />-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- <div class="col-12 col-md-5 d-flex flex-column justify-content-center paddingCol">-->
|
||||
<!-- <div class="txt">-->
|
||||
<!-- <h6 class="h6">{{ content.s4.t1 }}</h6>-->
|
||||
|
||||
<!-- <ul class="list2">-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t1 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t2 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t3 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t4 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t5 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t6 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t7 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t8 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t9 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t10 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t11 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t12 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t13 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t14 }}</li>-->
|
||||
<!-- </ul>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- <div class="col-12 item reverse anim-fadeInStagger p3 paddingCol">-->
|
||||
<!-- <div class="row staggerItem">-->
|
||||
<!-- <div class="col-12 col-md-7 paddingCol">-->
|
||||
<!-- <img-->
|
||||
<!-- src="/img/ActivitiesPage/DetailsPage/drilling3.jpg"-->
|
||||
<!-- alt=""-->
|
||||
<!-- />-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- <div class="col-12 col-md-5 d-flex flex-column justify-content-center paddingCol">-->
|
||||
<!-- <div class="txt">-->
|
||||
<!-- <h6 class="h6">-->
|
||||
<!-- {{ content.s5.t1 }}-->
|
||||
<!-- </h6>-->
|
||||
|
||||
<!-- <ul class="list2">-->
|
||||
<!-- <li><i class="fas fa-check"></i> {{ content.s5.t2 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i> {{ content.s5.t3 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i> {{ content.s5.t4 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i> {{ content.s5.t5 }}</li>-->
|
||||
<!-- </ul>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="col-12 item descBottom p4 paddingCol">-->
|
||||
<!-- <div class="container">-->
|
||||
<!-- <div class="row">-->
|
||||
<!-- <div class="col-12 paddingCol">-->
|
||||
<!-- <div class="txt">-->
|
||||
<!-- <h6 class="h6 mb-5">-->
|
||||
<!-- {{ content.s6.t1 }}-->
|
||||
<!-- </h6>-->
|
||||
|
||||
<!-- <p>-->
|
||||
<!-- {{ content.s6.t2 }}-->
|
||||
<!-- </p>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- </section>-->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
fadeInAnimation,
|
||||
fadeInStaggerAnimation,
|
||||
leftToRightAnimation,
|
||||
leftToRightStaggerAnimation,
|
||||
numberAnimation,
|
||||
progressAnimation
|
||||
} from '@/utils/animations'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
defaultCover: '/img/ActivitiesPage/page-title.png'
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
fadeInAnimation(this.$gsap)
|
||||
leftToRightAnimation(this.$gsap)
|
||||
fadeInStaggerAnimation(this.$gsap)
|
||||
leftToRightStaggerAnimation(this.$gsap)
|
||||
numberAnimation(this.$gsap)
|
||||
progressAnimation(this.$gsap)
|
||||
//--------------------------------------------------------- Section 1
|
||||
this.$gsap
|
||||
.timeline({
|
||||
scrollTrigger: {
|
||||
trigger: '.s2-Img-BG',
|
||||
scrub: true,
|
||||
start: 'top top'
|
||||
}
|
||||
})
|
||||
.to($('.s1-Img-BG .parallax'), {
|
||||
duration: 9,
|
||||
opacity: 0,
|
||||
y: '50%'
|
||||
})
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
goDown(element) {
|
||||
this.$gsap.to(window, { scrollTo: element, duration: 0.7 })
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
content() {
|
||||
return this.$store.state.content.srp[this.$route.params.lang]
|
||||
},
|
||||
cover() {
|
||||
return this.$store.state.global.cover?.activity
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,161 @@
|
||||
<template>
|
||||
<div class="activities-details-page page">
|
||||
<!---------------------------------- Section 1 ------------------------------------->
|
||||
<section class="s1-Img-BG">
|
||||
<div
|
||||
class="parallax"
|
||||
:style="{
|
||||
background: `linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),url(${cover ? cover : defaultCover})`
|
||||
}"
|
||||
>
|
||||
<h1 class="h1 anim-fadeIn" :style="{ color: $route.params.lang === 'fa' && '#fff' }">{{ content.s1.t1 }}</h1>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 2 ------------------------------------->
|
||||
<section class="s2-Img-BG">
|
||||
<div class="parallax">
|
||||
<div class="row">
|
||||
<div class="col-12 centerItem s2-item">
|
||||
<div class="s2-body">
|
||||
<div class="container anim-fadeInStagger">
|
||||
<div class="_s2-Desc-View">
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t1 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t2 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t3 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t4 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t5 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t6 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t7 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t8 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t9 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t10 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t11 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t12 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t13 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t14 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t15 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t16 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t17 }}</p>
|
||||
</div>
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>{{ content.s2.t18 }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a class="btn btn-primary" href="./../../../static/SRP.pdf" download="">دانلود pdf</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
fadeInAnimation,
|
||||
fadeInStaggerAnimation,
|
||||
leftToRightAnimation,
|
||||
leftToRightStaggerAnimation,
|
||||
numberAnimation,
|
||||
progressAnimation
|
||||
} from '@/utils/animations'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
defaultCover: '/img/ActivitiesPage/page-title.png'
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
fadeInAnimation(this.$gsap)
|
||||
leftToRightAnimation(this.$gsap)
|
||||
fadeInStaggerAnimation(this.$gsap)
|
||||
leftToRightStaggerAnimation(this.$gsap)
|
||||
numberAnimation(this.$gsap)
|
||||
progressAnimation(this.$gsap)
|
||||
//--------------------------------------------------------- Section 1
|
||||
this.$gsap
|
||||
.timeline({
|
||||
scrollTrigger: {
|
||||
trigger: '.s2-Img-BG',
|
||||
scrub: true,
|
||||
start: 'top top'
|
||||
}
|
||||
})
|
||||
.to($('.s1-Img-BG .parallax'), {
|
||||
duration: 9,
|
||||
opacity: 0,
|
||||
y: '50%'
|
||||
})
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
goDown(element) {
|
||||
this.$gsap.to(window, { scrollTo: element, duration: 0.7 })
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
content() {
|
||||
return this.$store.state.content.srpConex[this.$route.params.lang]
|
||||
},
|
||||
cover() {
|
||||
return this.$store.state.global.cover?.activity
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,246 @@
|
||||
<template>
|
||||
<div class="activities-details-page page">
|
||||
<!---------------------------------- Section 1 ------------------------------------->
|
||||
<section class="s1-Img-BG">
|
||||
<div
|
||||
class="parallax"
|
||||
:style="{
|
||||
background: `linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),url(${cover ? cover : defaultCover})`
|
||||
}"
|
||||
>
|
||||
<h1 class="h1 anim-fadeIn" :style="{ color: $route.params.lang === 'fa' && '#fff' }">{{ content.s1.t1 }}</h1>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 2 ------------------------------------->
|
||||
<section class="s2-Img-BG">
|
||||
<div class="parallax">
|
||||
<div class="row">
|
||||
<div class="col-12 col-xl-6 col-lg-6 col-md-12 col-sm-12 s2-item">
|
||||
<img src="/img/ActivitiesPage/DetailsPage/petrochemy.jpg" alt="" class="s2-img" />
|
||||
</div>
|
||||
<div class="col-12 col-xl-6 col-lg-6 col-md-12 col-sm-12 centerItem s2-item">
|
||||
<div class="s2-body">
|
||||
<div class="container anim-fadeInStagger">
|
||||
<div class="row">
|
||||
<div class="s2-body-desc staggerItem">
|
||||
<p>
|
||||
{{ content.s2.t1 }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="s2-Desc-View staggerItem">
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-6 paddingCol" @click="goDown('.p1')">
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>
|
||||
{{ content.s2.t2 }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6 paddingCol" @click="goDown('.p3')">
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>
|
||||
{{ content.s2.t3 }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6 paddingCol" @click="goDown('.p2')">
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>
|
||||
{{ content.s2.t4 }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6 paddingCol" @click="goDown('.p4')">
|
||||
<div class="check">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<p>
|
||||
{{ content.s2.t5 }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 3 ------------------------------------->
|
||||
<section class="s3-BG section">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12 item reverse anim-fadeInStagger p1 paddingCol">
|
||||
<div class="row staggerItem">
|
||||
<div class="col-12 col-md-7 paddingCol">
|
||||
<img src="/img/ActivitiesPage/DetailsPage/1111.jpg" alt="" />
|
||||
</div>
|
||||
<div class="col-12 col-md-5 d-flex flex-column justify-content-center paddingCol">
|
||||
<div class="txt">
|
||||
<h6 class="h6">
|
||||
{{ content.s3.t1 }}
|
||||
</h6>
|
||||
|
||||
<!-- <ul class="list1">-->
|
||||
<!-- <li><i class="fas fa-circle"></i>{{ content.s3.t2 }}</li>-->
|
||||
<!-- <li><i class="fas fa-circle"></i>{{ content.s3.t3 }}</li>-->
|
||||
<!-- <li><i class="fas fa-circle"></i>{{ content.s3.t4 }}</li>-->
|
||||
<!-- <li><i class="fas fa-circle"></i>{{ content.s3.t5 }}</li>-->
|
||||
<!-- </ul>-->
|
||||
<!-- <p>{{ content.s3.t6 }}</p>-->
|
||||
|
||||
<!-- <ul class="list2">-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s3.t7 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s3.t8 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s3.t9 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s3.t10 }}</li>-->
|
||||
<!-- </ul>-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12 item anim-fadeInStagger p2 paddingCol">
|
||||
<div class="row staggerItem">
|
||||
<div class="col-12 col-md-7 paddingCol">
|
||||
<img src="/img/ActivitiesPage/DetailsPage/header.jpg" alt="" />
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-5 d-flex flex-column justify-content-center paddingCol">
|
||||
<div class="txt">
|
||||
<h6 class="h6">
|
||||
{{ content.s4.t1 }}
|
||||
</h6>
|
||||
|
||||
<!-- <ul class="list2">-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t2 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t3 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t4 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t5 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t6 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s4.t7 }}</li>-->
|
||||
<!-- </ul>-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12 item reverse anim-fadeInStagger p3 paddingCol">
|
||||
<div class="row staggerItem">
|
||||
<div class="col-12 col-md-7 paddingCol">
|
||||
<img src="/img/ActivitiesPage/DetailsPage/gtc.jpg" alt="" />
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-5 d-flex flex-column justify-content-center paddingCol">
|
||||
<div class="txt">
|
||||
<h6 class="h6">
|
||||
{{ content.s5.t1 }}
|
||||
</h6>
|
||||
|
||||
<!-- <ul class="list2">-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s5.t2 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s5.t3 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s5.t4 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s5.t5 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s5.t6 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s5.t7 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s5.t8 }}</li>-->
|
||||
<!-- </ul>-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12 item anim-fadeInStagger p4 paddingCol">
|
||||
<div class="row staggerItem">
|
||||
<div class="col-12 col-md-7 paddingCol">
|
||||
<img src="/img/ActivitiesPage/DetailsPage/petrochemy1.jpg" alt="" />
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-5 d-flex flex-column justify-content-center paddingCol">
|
||||
<div class="txt">
|
||||
<h6 class="h6">
|
||||
{{ content.s6.t1 }}
|
||||
</h6>
|
||||
|
||||
<!-- <ul class="list2">-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s6.t2 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s6.t3 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s6.t4 }}</li>-->
|
||||
<!-- <li><i class="fas fa-check"></i>{{ content.s6.t5 }}</li>-->
|
||||
<!-- </ul>-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
fadeInAnimation,
|
||||
fadeInStaggerAnimation,
|
||||
leftToRightAnimation,
|
||||
leftToRightStaggerAnimation,
|
||||
numberAnimation,
|
||||
progressAnimation
|
||||
} from '@/utils/animations'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
defaultCover: '/img/ActivitiesPage/page-title.png'
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
fadeInAnimation(this.$gsap)
|
||||
leftToRightAnimation(this.$gsap)
|
||||
fadeInStaggerAnimation(this.$gsap)
|
||||
leftToRightStaggerAnimation(this.$gsap)
|
||||
numberAnimation(this.$gsap)
|
||||
progressAnimation(this.$gsap)
|
||||
//--------------------------------------------------------- Section 1
|
||||
this.$gsap
|
||||
.timeline({
|
||||
scrollTrigger: {
|
||||
trigger: '.s2-Img-BG',
|
||||
scrub: true,
|
||||
start: 'top top'
|
||||
}
|
||||
})
|
||||
.to($('.s1-Img-BG .parallax'), {
|
||||
duration: 9,
|
||||
opacity: 0,
|
||||
y: '50%'
|
||||
})
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
goDown(element) {
|
||||
this.$gsap.to(window, { scrollTo: element, duration: 0.7 })
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
content() {
|
||||
return this.$store.state.content.ward[this.$route.params.lang]
|
||||
},
|
||||
cover() {
|
||||
return this.$store.state.global.cover?.activity
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,233 @@
|
||||
<template>
|
||||
<div class="blog-details-page page">
|
||||
<!---------------------------------- Section 1 ------------------------------------->
|
||||
<section class="s1-Img-BG">
|
||||
<div
|
||||
class="parallax"
|
||||
:style="{ backgroundImage: `linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url(${post.cover})` }"
|
||||
>
|
||||
<div class="s1-title anim-fadeIn">
|
||||
<div class="date">
|
||||
<p>{{ jDateDay(post.createt_at) }}</p>
|
||||
<p>{{ jDateMonth(post.created_at) }}</p>
|
||||
</div>
|
||||
<div class="s1-desc">
|
||||
<h6 class="h6">{{ post.locale[$route.params.lang].title }}</h6>
|
||||
<div>
|
||||
<IconBlogDetailsFolderIcon/>
|
||||
<span> {{ content.s1.t1 }} </span>
|
||||
<IconBlogDetailsCategoryIcon/>
|
||||
<span> {{ post.category ? post.category.locale[$route.params.lang].title : 'No Category' }} </span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 2 ------------------------------------->
|
||||
<section class="s2-BG">
|
||||
<div class="s2-desc anim-leftToRight">
|
||||
<p>{{ content.s2.t2 }}</p>
|
||||
<i class="fas" :class="$route.params.lang === 'fa' ? 'fa-angle-left' : 'fa-angle-right'"></i>
|
||||
<p>{{ content.s2.t1 }}</p>
|
||||
<i class="fas" :class="$route.params.lang === 'fa' ? 'fa-angle-left' : 'fa-angle-right'"></i>
|
||||
<p>{{ post.locale[$route.params.lang].title }}</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section Content ------------------------------------->
|
||||
<section class="content section">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="ck-content" v-html="post.locale[$route.params.lang].description"></div>
|
||||
<div v-if="post.video" class="mt-3 d-flex justify-content-center">
|
||||
<video height="400" controls :src="post.video"></video>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 8 ------------------------------------->
|
||||
<section class="s8-Img-BG anim-fadeInStagger" v-if="post.last_section_image">
|
||||
<div
|
||||
class="parallax"
|
||||
:style="{
|
||||
backgroundImage: `linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(${post.last_section_image})`
|
||||
}"
|
||||
>
|
||||
<h2 class="h2 staggerItem" v-if="post.locale[$route.params.lang].last_section_image_title">
|
||||
{{ post.locale[$route.params.lang].last_section_image_title }}
|
||||
</h2>
|
||||
<div class="s8-desc staggerItem" v-if="post.locale[$route.params.lang].last_section_image_description">
|
||||
<p>{{ post.locale[$route.params.lang].last_section_image_description }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 9 ------------------------------------->
|
||||
<section class="s9-BG" v-if="post.locale[$route.params.lang].last_section_title">
|
||||
<div class="parallax section">
|
||||
<div class="container anim-fadeInStagger">
|
||||
<div class="s9-title staggerItem">
|
||||
<h5 class="h5">{{ post.locale[$route.params.lang].last_section_title }}</h5>
|
||||
</div>
|
||||
<div class="s9-desc staggerItem">
|
||||
<p>{{ post.locale[$route.params.lang].last_section_description }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 10 ------------------------------------->
|
||||
<section class="s10-BG">
|
||||
<div class="">
|
||||
<div class="s10-shares">
|
||||
<!-- <p>0 SHARES</p>-->
|
||||
</div>
|
||||
|
||||
<div class="s10-social">
|
||||
<ul>
|
||||
<li>
|
||||
<ShareNetwork
|
||||
network="facebook"
|
||||
:url="'https://orisoxin.com' + $route.fullPath"
|
||||
:title="post.locale[$route.params.lang].title"
|
||||
:description="post.locale[$route.params.lang].short_description"
|
||||
hashtags="orsioxin"
|
||||
>
|
||||
<i class="fab fa-facebook-f"></i>
|
||||
</ShareNetwork>
|
||||
</li>
|
||||
<li>
|
||||
<ShareNetwork
|
||||
network="Twitter"
|
||||
:url="'https://orisoxin.com' + $route.fullPath"
|
||||
:title="post.locale[$route.params.lang].title"
|
||||
:description="post.locale[$route.params.lang].short_description"
|
||||
hashtags="orsioxin"
|
||||
>
|
||||
<i class="fab fa-twitter"></i>
|
||||
</ShareNetwork>
|
||||
</li>
|
||||
<li>
|
||||
<ShareNetwork
|
||||
network="LinkedIn"
|
||||
:url="'https://orisoxin.com' + $route.fullPath"
|
||||
:title="post.locale[$route.params.lang].title"
|
||||
:description="post.locale[$route.params.lang].short_description"
|
||||
hashtags="orsioxin"
|
||||
>
|
||||
<i class="fab fa-linkedin-in"></i>
|
||||
</ShareNetwork>
|
||||
</li>
|
||||
<li>
|
||||
<ShareNetwork
|
||||
network="Email"
|
||||
:url="'https://orisoxin.com' + $route.fullPath"
|
||||
:title="post.locale[$route.params.lang].title"
|
||||
:description="post.locale[$route.params.lang].short_description"
|
||||
hashtags="orsioxin"
|
||||
>
|
||||
<i class="fas fa-envelope"></i>
|
||||
</ShareNetwork>
|
||||
</li>
|
||||
<!-- <li>-->
|
||||
<!-- <ShareNetwork-->
|
||||
<!-- network="SMS"-->
|
||||
<!-- :url="'https://orisoxin.com' + $route.fullPath"-->
|
||||
<!-- :title="post.locale[$route.params.lang].title"-->
|
||||
<!-- :description="post.locale[$route.params.lang].short_description"-->
|
||||
<!-- hashtags="orsioxin"-->
|
||||
<!-- >-->
|
||||
<!-- <i class="fab fa-google-plus-g"></i>-->
|
||||
<!-- </ShareNetwork>-->
|
||||
<!-- </li>-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
fadeInAnimation,
|
||||
fadeInStaggerAnimation,
|
||||
leftToRightAnimation,
|
||||
leftToRightStaggerAnimation,
|
||||
numberAnimation,
|
||||
progressAnimation,
|
||||
rightToLeftAnimation
|
||||
} from '@/utils/animations'
|
||||
import moment from 'moment-jalaali'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
post: null
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
jDateDay(date) {
|
||||
let dateFormat = moment(date)
|
||||
if (this.$route.params.lang === 'fa') {
|
||||
moment.loadPersian()
|
||||
return dateFormat.format('jYYYY/jMM/jDD').split('/')[2]
|
||||
} else {
|
||||
return dateFormat.format('yyyy/mm/DD').split('/')[2]
|
||||
}
|
||||
},
|
||||
jDateMonth(date) {
|
||||
let dateFormat = moment(date)
|
||||
if (this.$route.params.lang === 'fa') {
|
||||
moment.loadPersian()
|
||||
return dateFormat.format('jYYYY/jMMMM/jDD').split('/')[1]
|
||||
} else {
|
||||
return dateFormat.format('yyyy/MMM/DD').split('/')[1]
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
fadeInAnimation(this.$gsap)
|
||||
leftToRightAnimation(this.$gsap)
|
||||
fadeInStaggerAnimation(this.$gsap)
|
||||
leftToRightStaggerAnimation(this.$gsap)
|
||||
numberAnimation(this.$gsap)
|
||||
progressAnimation(this.$gsap)
|
||||
rightToLeftAnimation(this.$gsap)
|
||||
//--------------------------------------------------------- Section 1
|
||||
this.$gsap
|
||||
.timeline({
|
||||
scrollTrigger: {
|
||||
trigger: '.s2-BG',
|
||||
scrub: true,
|
||||
start: 'top top'
|
||||
}
|
||||
})
|
||||
.to($('.s1-Img-BG .parallax'), {
|
||||
duration: 9,
|
||||
opacity: 0,
|
||||
y: '10%'
|
||||
})
|
||||
})
|
||||
},
|
||||
computed: {
|
||||
content() {
|
||||
return this.$store.state.content.blogDetails[this.$route.params.lang]
|
||||
}
|
||||
},
|
||||
async asyncData({$axios, params, error}) {
|
||||
try {
|
||||
const post = await $axios.get(`/api/public/blogPost/${encodeURIComponent(params.post)}`)
|
||||
return {
|
||||
post: post.data
|
||||
}
|
||||
} catch (e) {
|
||||
error({status: 404, message: 'page not found'})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,226 @@
|
||||
<template>
|
||||
<div class="blog-page page">
|
||||
<!---------------------------------- Section 1 ------------------------------------->
|
||||
<section class="s1-Img-BG">
|
||||
<div
|
||||
class="parallax"
|
||||
:style="{
|
||||
background: `linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),url(${cover ? cover : defaultCover})`
|
||||
}"
|
||||
>
|
||||
<h1 class="h1 anim-fadeIn" :style="{ color: $route.params.lang === 'fa' && '#fff' }">{{ content.s1.t1 }}</h1>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 2 ------------------------------------->
|
||||
|
||||
<section class="s2-BG">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<ul>
|
||||
<nuxt-link
|
||||
class="s2-all-cat"
|
||||
tag="li"
|
||||
:to="{ name: 'lang-blog', params: { lang: $route.params.lang }, query: { category: 'all', page: 1 } }"
|
||||
>
|
||||
<a :class="$route.query.category === 'all' ? 'active' : null">{{ content.s2.t1 }}</a>
|
||||
</nuxt-link>
|
||||
|
||||
<nuxt-link
|
||||
class="s2-all-cat"
|
||||
v-for="item in blogCategories"
|
||||
:key="item._id"
|
||||
tag="li"
|
||||
:to="{
|
||||
name: 'lang-blog',
|
||||
params: { lang: $route.params.lang },
|
||||
query: { category: item.locale[$route.params.lang].title, page: 1 }
|
||||
}"
|
||||
>
|
||||
<a :class="$route.query.category === item.locale[$route.params.lang].title ? 'active' : null">{{
|
||||
item.locale[$route.params.lang].title
|
||||
}}</a>
|
||||
</nuxt-link>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 3 ------------------------------------->
|
||||
|
||||
<section class="s3-BG">
|
||||
<div class="parallax section">
|
||||
<div class="container">
|
||||
<div class="row align-items-stretch" v-if="blogPosts.docs.length">
|
||||
<div class="col-12 col-md-6 col-lg-4 mb-4 anim-fadeIn" v-for="item in blogPosts.docs" :key="item._id">
|
||||
<div class="s3-item">
|
||||
<img :src="item.thumb" :alt="item.locale[$route.params.lang].title" />
|
||||
<div class="s3-body">
|
||||
<div class="s3-top-desc">
|
||||
<div>
|
||||
<i class="far fa-circle"></i>
|
||||
<span>{{ jDate(item.created_at) }}</span>
|
||||
</div>
|
||||
<!-- <div>-->
|
||||
<!-- <i class="far fa-clone"></i>-->
|
||||
<!-- <span>{{ item.name }}</span>-->
|
||||
<!-- </div>-->
|
||||
<div>
|
||||
<i class="far fa-folder-open"></i>
|
||||
<span>{{ item.category ? item.category.locale[$route.params.lang].title : 'No Category' }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<h6 class="h6">{{ item.locale[$route.params.lang].title }}</h6>
|
||||
<p>{{ item.locale[$route.params.lang].short_description }}</p>
|
||||
<nuxt-link
|
||||
:to="{
|
||||
name: 'lang-blog-post',
|
||||
params: { lang: $route.params.lang, post: item.locale[$route.params.lang].title }
|
||||
}"
|
||||
class="s3-reading"
|
||||
>
|
||||
<p>
|
||||
{{ content.s3.t1 }}
|
||||
<i class="fas" :class="$route.params.lang === 'en' ? 'fa-arrow-right' : 'fa-arrow-left'"></i>
|
||||
</p>
|
||||
</nuxt-link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12" v-if="!blogPosts.docs.length">
|
||||
<p>there is no post yet</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" v-else>
|
||||
<div class="col-12 s3-notFound">
|
||||
<h6 class="h6 notFound">{{ content.s3.t2 }}</h6>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- paginate -->
|
||||
<section class="pagination section">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<el-pagination
|
||||
layout="prev, pager, next"
|
||||
v-if="paginate"
|
||||
class="el-pagination"
|
||||
@current-change="pageNumber"
|
||||
:current-page="Number($route.query.page)"
|
||||
:page-count="Number(blogPosts.totalPages)"
|
||||
>
|
||||
</el-pagination>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
fadeInAnimation,
|
||||
fadeInStaggerAnimation,
|
||||
leftToRightAnimation,
|
||||
leftToRightStaggerAnimation,
|
||||
numberAnimation,
|
||||
progressAnimation
|
||||
} from '~/utils/animations'
|
||||
|
||||
import moment from 'moment-jalaali'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
blogPosts: null,
|
||||
blogCategories: null,
|
||||
defaultCover: '/img/BlogPage/page-title.png'
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
paginate() {
|
||||
return this.blogPosts.totalPages > 1
|
||||
},
|
||||
category() {
|
||||
return this.$route.query.category
|
||||
},
|
||||
page() {
|
||||
return this.$route.query.page
|
||||
},
|
||||
content() {
|
||||
return this.$store.state.content.blog[this.$route.params.lang]
|
||||
},
|
||||
cover() {
|
||||
return this.$store.state.global.cover?.blog
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
category(newVal, oldVal) {
|
||||
this.$nuxt.refresh()
|
||||
},
|
||||
page(newVal, oldVal) {
|
||||
this.$nuxt.refresh()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
pageNumber(val) {
|
||||
this.$router.push({
|
||||
name: 'lang-blog',
|
||||
params: { lang: this.$route.params.lang },
|
||||
query: { category: this.$route.query.category, page: val }
|
||||
})
|
||||
},
|
||||
jDate(date) {
|
||||
return moment(date).locale('fa').format(' HH:mm - jYYYY/jMM/jDD')
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
fadeInAnimation(this.$gsap)
|
||||
leftToRightAnimation(this.$gsap)
|
||||
fadeInStaggerAnimation(this.$gsap)
|
||||
leftToRightStaggerAnimation(this.$gsap)
|
||||
numberAnimation(this.$gsap)
|
||||
progressAnimation(this.$gsap)
|
||||
//--------------------------------------------------------- Section 1
|
||||
this.$gsap
|
||||
.timeline({
|
||||
scrollTrigger: {
|
||||
trigger: '.s2-BG',
|
||||
scrub: true,
|
||||
start: 'top top'
|
||||
}
|
||||
})
|
||||
.to($('.s1-Img-BG > div'), {
|
||||
duration: 9,
|
||||
opacity: 0,
|
||||
y: '10%'
|
||||
})
|
||||
})
|
||||
},
|
||||
async asyncData({ $axios, error, query }) {
|
||||
try {
|
||||
const allData = await Promise.all([
|
||||
// fetch blogCategories [0]
|
||||
$axios.get(`/api/public/blogCategories`),
|
||||
// fetch blogPosts [1]
|
||||
$axios.get(`/api/public/blogPosts?category=${encodeURIComponent(query.category)}&page=${query.page}`)
|
||||
])
|
||||
const blogCategories = allData[0]
|
||||
const blogPosts = allData[1]
|
||||
|
||||
return {
|
||||
blogCategories: blogCategories.data,
|
||||
blogPosts: blogPosts.data
|
||||
}
|
||||
} catch (e) {
|
||||
error({ status: 404, message: 'page not found' })
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,115 @@
|
||||
<template>
|
||||
<div class="catalog-page page">
|
||||
<!---------------------------------- Section 1 ------------------------------------->
|
||||
<section class="s1-Img-BG">
|
||||
<div
|
||||
class="parallax"
|
||||
:style="{
|
||||
background: `linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),url(${cover ? cover : defaultCover})`
|
||||
}"
|
||||
>
|
||||
<h1 class="h1 anim-fadeIn" :style="{ color: $route.params.lang === 'fa' && '#fff' }">{{ content.s1.t1 }}</h1>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 2 ------------------------------------->
|
||||
<section class="s2-BG section">
|
||||
<div class="parallax">
|
||||
<div class="container">
|
||||
<div class="row" v-if="catalogs.length">
|
||||
<div
|
||||
class="col-12 col-lg-3 mb-3"
|
||||
v-for="item in catalogs"
|
||||
:key="item._id"
|
||||
v-if="($route.params.lang === 'fa' && item.showInFa) || ($route.params.lang === 'en' && item.showInEn)"
|
||||
>
|
||||
<div class="s2-item">
|
||||
<img
|
||||
:src="item.cover"
|
||||
:alt="item.locale[$route.params.lang].title"
|
||||
:title="item.locale[$route.params.lang].title"
|
||||
/>
|
||||
<div class="s2-body">
|
||||
<a :href="item.file" target="_blank" :title="item.locale[$route.params.lang].title" download>{{
|
||||
content.s2.t1
|
||||
}}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" v-else>
|
||||
<div class="col-12 s2-notFound">
|
||||
<h6 class="h6 notFound">{{ content.s2.t2 }}</h6>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
fadeInAnimation,
|
||||
fadeInStaggerAnimation,
|
||||
leftToRightAnimation,
|
||||
leftToRightStaggerAnimation,
|
||||
numberAnimation,
|
||||
progressAnimation,
|
||||
rightToLeftAnimation
|
||||
} from '@/utils/animations'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
catalogs: null,
|
||||
defaultCover: '/img/BlogPage/page-title.png'
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
fadeInAnimation(this.$gsap)
|
||||
leftToRightAnimation(this.$gsap)
|
||||
fadeInStaggerAnimation(this.$gsap)
|
||||
leftToRightStaggerAnimation(this.$gsap)
|
||||
numberAnimation(this.$gsap)
|
||||
progressAnimation(this.$gsap)
|
||||
rightToLeftAnimation(this.$gsap),
|
||||
//--------------------------------------------------------- Section 1
|
||||
this.$gsap
|
||||
.timeline({
|
||||
scrollTrigger: {
|
||||
trigger: '.s2-BG',
|
||||
scrub: true,
|
||||
start: 'top top'
|
||||
}
|
||||
})
|
||||
.to($('.s1-Img-BG > div'), {
|
||||
duration: 9,
|
||||
opacity: 0,
|
||||
y: '50%'
|
||||
})
|
||||
})
|
||||
},
|
||||
async asyncData({ $axios, error }) {
|
||||
try {
|
||||
const catalogs = await $axios.get('/api/public/catalogs')
|
||||
|
||||
return {
|
||||
catalogs: catalogs.data
|
||||
}
|
||||
} catch (e) {
|
||||
error({ status: 500, message: 'there is a problem here' })
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
content() {
|
||||
return this.$store.state.content.catalog[this.$route.params.lang]
|
||||
},
|
||||
cover() {
|
||||
return this.$store.state.global.cover?.catalog
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,52 @@
|
||||
<template>
|
||||
<div class="consents-page">
|
||||
<!---------------------------------- Section 1 ------------------------------------->
|
||||
<section class="s1-Img-BG">
|
||||
<div
|
||||
class="parallax"
|
||||
:style="{background: `linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),url(${cover ? cover : defaultCover})`}"
|
||||
>
|
||||
<h1 class="h1 anim-fadeIn" :style="{ color: $route.params.lang === 'fa' && '#fff' }">{{ content.s1.t1 }}</h1>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 2 ------------------------------------->
|
||||
<section class="s2-Img-BG">
|
||||
<div class="parallax section">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-6 col-lg-3 view-img" v-for="item in 53" :key="item + '_orsiOxinConsent'">
|
||||
<a :href="`/img/ConsentsPage/${item}.jpg`">
|
||||
<img :src="`/img/ConsentsPage/${item}.jpg`" title="consent" alt="OrisOxin-consents" class="img" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
defaultCover: '/img/GalleryPage/page-title.png',
|
||||
consentsCount: 53
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
$(document).ready(() => {
|
||||
// certificates
|
||||
new SimpleLightbox('.s2-Img-BG .view-img a')
|
||||
})
|
||||
},
|
||||
computed: {
|
||||
content() {
|
||||
return this.$store.state.content.consents[this.$route.params.lang]
|
||||
},
|
||||
cover() {
|
||||
return this.$store.state.global.cover?.consent
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,509 @@
|
||||
<template>
|
||||
<div class="contact-page page">
|
||||
<!---------------------------------- Section 1 ------------------------------------->
|
||||
<div class="s1-Img-BG">
|
||||
<div
|
||||
class="parallax"
|
||||
:style="{
|
||||
background: `linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),url(${cover ? cover : defaultCover})`
|
||||
}"
|
||||
>
|
||||
<h1 class="h1 anim-fadeIn" :style="{ color: $route.params.lang === 'fa' && '#fff' }">{{ content.s1.t1 }}</h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!---------------------------------- Section 2 ------------------------------------->
|
||||
<div class="s2">
|
||||
<div class="parallax">
|
||||
<div id="slides" class="row">
|
||||
<div class="col-12 col-md-6 col-lg-4 s2-item slide">
|
||||
<div class="s2-img s2-Img-col1 anim-fadeInStagger">
|
||||
<h4 class="h4 staggerItem">{{ content.s2.t19 }}</h4>
|
||||
<p class="s2-desc staggerItem" style="margin-bottom: 0">ENGEMASA</p>
|
||||
<p class="s2-desc staggerItem" style="margin-top: 0">
|
||||
{{ content.s2.t20 }}
|
||||
</p>
|
||||
<div class="s2-tel staggerItem">
|
||||
<ul>
|
||||
<li>
|
||||
<b>{{ content.s2.t9 }}: </b>
|
||||
<a href="tel:+551633631500">+551633631500</a>
|
||||
</li>
|
||||
<li>
|
||||
<b>{{ content.s2.t10 }}: </b>
|
||||
<a href="mailto:info[at]orisoxin.com">info[at]orisoxin.com</a>
|
||||
</li>
|
||||
<li>
|
||||
<b>{{ content.s2.t23 }}: </b>
|
||||
<a href="www.engemasa.com.br">www.engemasa.com.br</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-md-6 col-lg-4 s2-item slide">
|
||||
<div class="s2-img s2-Img-col2 anim-fadeInStagger">
|
||||
<h4 class="h4 staggerItem">{{ content.s2.t15 }}</h4>
|
||||
<p class="s2-desc staggerItem" style="margin-bottom: 0">NPA</p>
|
||||
<p class="s2-desc staggerItem" style="margin-top: 0">
|
||||
{{ content.s2.t16 }}
|
||||
</p>
|
||||
<div class="s2-tel staggerItem">
|
||||
<ul>
|
||||
<li>
|
||||
<b>{{ content.s2.t9 }}: </b>
|
||||
<a href="tel:+8653287314976">+86 532 87314976</a>
|
||||
</li>
|
||||
<li>
|
||||
<b>{{ content.s2.t24 }}: </b>
|
||||
<a href="tel:+8653287314975">+86 532 87314975</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-md-6 col-lg-4 s2-item slide">
|
||||
<div class="s2-img s2-Img-col3 anim-fadeInStagger">
|
||||
<h4 class="h4 staggerItem">{{ content.s2.t17 }}</h4>
|
||||
<p class="s2-desc staggerItem">
|
||||
{{ content.s2.t18 }}
|
||||
</p>
|
||||
<div class="s2-tel staggerItem">
|
||||
<ul>
|
||||
<li>
|
||||
<b>{{ content.s2.t9 }}: </b>
|
||||
<a href="tel:82(55)5874570">82(55)5874570</a>
|
||||
</li>
|
||||
<li>
|
||||
<b>{{ content.s2.t24 }}: </b>
|
||||
<a href="tel:82(55)5873330">82(55)5873330</a>
|
||||
</li>
|
||||
<li>
|
||||
<b>{{ content.s2.t10 }}: </b>
|
||||
<a href="mailto:info[at]orisoxin.com">info[at]orisoxin.com</a>
|
||||
</li>
|
||||
<li>
|
||||
<b>{{ content.s2.t23 }}: </b>
|
||||
<a href="www.GasComp.kr">www.GasComp.kr</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="col-12 col-md-6 col-lg-4 s2-item slide">-->
|
||||
<!-- <div class="s2-img s2-Img-col2 anim-fadeInStagger">-->
|
||||
<!-- <h4 class="h4 staggerItem">{{ content.s2.t19 }}</h4>-->
|
||||
<!-- <p class="s2-desc staggerItem">-->
|
||||
<!-- {{ content.s2.t20 }}-->
|
||||
<!-- </p>-->
|
||||
<!-- <div class="s2-tel staggerItem">-->
|
||||
<!-- <ul>-->
|
||||
<!-- <li>-->
|
||||
<!-- <b>{{ content.s2.t9 }}: </b>-->
|
||||
<!-- <a href="tel:+49021152295480">0049-021152295480</a>-->
|
||||
<!-- </li>-->
|
||||
<!-- <li>-->
|
||||
<!-- <b>{{ content.s2.t10 }}: </b>-->
|
||||
<!-- <a href="mailto:info[at]orisoxin.com">info[at]orisoxin.com</a>-->
|
||||
<!-- </li>-->
|
||||
<!-- </ul>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<div class="col-12 col-md-6 col-lg-4 s2-item slide">
|
||||
<div class="s2-img s2-Img-col1 anim-fadeInStagger">
|
||||
<h4 class="h4 staggerItem">{{ content.s2.t21 }}</h4>
|
||||
<p class="s2-desc staggerItem">
|
||||
{{ content.s2.t22 }}
|
||||
</p>
|
||||
<div class="s2-tel staggerItem">
|
||||
<ul>
|
||||
<li>
|
||||
<b>{{ content.s2.t9 }}: </b>
|
||||
<a href="tel:+8222083233840">+82-2-2083-2338-40</a>
|
||||
</li>
|
||||
<li>
|
||||
<b>{{ content.s2.t24 }}: </b>
|
||||
<a href="tel:+82220832341">+82-2-2083-2341</a>
|
||||
</li>
|
||||
<li>
|
||||
<b>{{ content.s2.t23 }}: </b>
|
||||
<a href="www.kdw.co.kr">www.kdw.co.kr</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-md-6 col-lg-4 s2-item slide">
|
||||
<div class="s2-img s2-Img-col2 anim-fadeInStagger">
|
||||
<h4 class="h4 staggerItem">{{ content.s2.t13 }}</h4>
|
||||
<p class="s2-desc staggerItem" style="margin-bottom: 0">HJ Metal Korea</p>
|
||||
<p class="s2-desc staggerItem" style="margin-top: 0">
|
||||
{{ content.s2.t14 }}
|
||||
</p>
|
||||
<div class="s2-tel staggerItem">
|
||||
<ul>
|
||||
<li>
|
||||
<b>{{ content.s2.t9 }}: </b>
|
||||
<a href="tel:+82325724081">+82 32 572 4081-2</a>
|
||||
</li>
|
||||
<li>
|
||||
<b>{{ content.s2.t24 }}: </b>
|
||||
<a href="tel:+82325724086">+82 32 572 4086</a>
|
||||
</li>
|
||||
<li>
|
||||
<b>{{ content.s2.t10 }}: </b>
|
||||
<a href="mailto:info[at]orisoxin.com">info[at]orisoxin.com</a>
|
||||
</li>
|
||||
<li>
|
||||
<b>{{ content.s2.t23 }}: </b>
|
||||
<a href="www.hjmk.co.kr">www.hjmk.co.kr</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-md-6 col-lg-4 s2-item slide">
|
||||
<div class="s2-img s2-Img-col7 anim-fadeInStagger">
|
||||
<h4 class="h4 staggerItem">{{ content.s2.t5 }}</h4>
|
||||
<p class="s2-desc staggerItem">
|
||||
{{ content.s2.t6 }}
|
||||
</p>
|
||||
<div class="s2-tel staggerItem">
|
||||
<ul>
|
||||
<li>
|
||||
<b>{{ content.s2.t25 }}: </b>
|
||||
<a href="tel:03132747303">031-32747303</a>
|
||||
</li>
|
||||
<li>
|
||||
<b>{{ content.s2.t10 }}: </b>
|
||||
<a href="mailto:info[at]orisoxin.com">info[at]orisoxin.com</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-md-6 col-lg-4 s2-item slide">
|
||||
<div class="s2-img s2-Img-col6 anim-fadeInStagger">
|
||||
<h4 class="h4 staggerItem">{{ content.s2.t3 }}</h4>
|
||||
<p class="s2-desc staggerItem">
|
||||
{{ content.s2.t4 }}
|
||||
</p>
|
||||
<div class="s2-tel staggerItem">
|
||||
<ul>
|
||||
<li>
|
||||
<b>{{ content.s2.t9 }}: </b>
|
||||
<a href="tel:06134491021">0613-4491021</a>
|
||||
</li>
|
||||
<li>
|
||||
<b>{{ content.s2.t9 }}: </b>
|
||||
<a href="tel:06134491022">0613-4491022</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<b>{{ content.s2.t10 }}: </b>
|
||||
<a href="mailto:info[at]orisoxin.com">info[at]orisoxin.com</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-md-6 col-lg-4 s2-item slide">
|
||||
<div class="s2-img s2-Img-col5 anim-fadeInStagger">
|
||||
<h4 class="h4 staggerItem">{{ content.s2.t1 }}</h4>
|
||||
<p class="s2-desc staggerItem">
|
||||
{{ content.s2.t2 }}
|
||||
</p>
|
||||
<div class="s2-tel staggerItem">
|
||||
<ul>
|
||||
<li>
|
||||
<b>{{ content.s2.t9 }}: </b>
|
||||
<a href="tel:06134427626">0613-4427626</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-md-6 col-lg-4 s2-item slide">
|
||||
<div class="s2-img s2-Img-col4 anim-fadeInStagger">
|
||||
<h4 class="h4 staggerItem">{{ content.s2.t11 }}</h4>
|
||||
<p class="s2-desc staggerItem">
|
||||
{{ content.s2.t12 }}
|
||||
</p>
|
||||
<div class="s2-tel staggerItem">
|
||||
<ul>
|
||||
<li>
|
||||
<b>{{ content.s2.t9 }}: </b>
|
||||
<a href="tel:02188612602">021-88612602</a>
|
||||
</li>
|
||||
<li>
|
||||
<b>{{ content.s2.t24 }}: </b>
|
||||
<a href="tel:02188612603">021-88612603</a>
|
||||
</li>
|
||||
<li>
|
||||
<b>{{ content.s2.t10 }}: </b>
|
||||
<a href="mailto:info[at]orisoxin.com">info[at]orisoxin.com</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!---------------------------------- Section 3 ------------------------------------->
|
||||
<div class="s3">
|
||||
<div class="parallax section">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12 order-1 order-lg-0 col-lg-7 info anim-fadeInStagger">
|
||||
<div class="s3-title-col1 staggerItem">
|
||||
<h6 class="h6">{{ content.s3.t1 }}</h6>
|
||||
</div>
|
||||
<div class="s3-desc-col1 staggerItem">
|
||||
<p>
|
||||
{{ content.s3.t2 }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="s3-input staggerItem">
|
||||
<form @submit.prevent="post">
|
||||
<div class="fromRow" :class="validation.name ? 'err' : null">
|
||||
<input v-model="message.name" class="input" name="name" type="text" :placeholder="content.s3.t3" />
|
||||
<p v-if="validation.name">{{ validation.name.msg }}</p>
|
||||
</div>
|
||||
<div class="formRow" :class="validation.email ? 'err' : null">
|
||||
<input
|
||||
v-model="message.email"
|
||||
class="input"
|
||||
name="email"
|
||||
type="text"
|
||||
:placeholder="content.s3.t4"
|
||||
/>
|
||||
<p v-if="validation.email">{{ validation.email.msg }}</p>
|
||||
</div>
|
||||
<div class="formRow" :class="validation.subject ? 'err' : null">
|
||||
<input
|
||||
v-model="message.subject"
|
||||
class="input"
|
||||
name="subject"
|
||||
type="text"
|
||||
:placeholder="content.s3.t5"
|
||||
/>
|
||||
<p v-if="validation.subject">{{ validation.subject.msg }}</p>
|
||||
</div>
|
||||
<div class="formRow" :class="validation.message ? 'err' : null">
|
||||
<textarea v-model="message.message" class="input" rows="6" :placeholder="content.s3.t6"></textarea>
|
||||
<p v-if="validation.message">{{ validation.message.msg }}</p>
|
||||
</div>
|
||||
<div class="btnSub">
|
||||
<button class="btn-link" type="submit">{{ content.s3.t7 }}</button>
|
||||
<!-- <nuxt-link >SUBMIT NOW</nuxt-link> -->
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 order-0 mb-5 mb-lg-0 order-lg-1 col-lg-5 location anim-fadeInStagger">
|
||||
<div class="s3-title-col2 staggerItem">
|
||||
<h6 class="h6">{{ content.s3.t8 }}</h6>
|
||||
</div>
|
||||
|
||||
<div class="s3-address staggerItem">
|
||||
<p>
|
||||
{{ content.s3.t9 }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="email staggerItem">
|
||||
<i class="fas fa-envelope"></i>
|
||||
<span><a href="mailto:info[at]orisoxin.com">info[at]orisoxin.com</a></span>
|
||||
</div>
|
||||
|
||||
<div class="tel staggerItem">
|
||||
<i class="fas fa-phone-alt"></i>
|
||||
<span><a href="tel:02188612602">021-88612602</a></span>
|
||||
</div>
|
||||
|
||||
<div class="tel staggerItem">
|
||||
<i class="fas fa-fax"></i>
|
||||
<span><a href="tel:02188612603">021-88612603</a></span>
|
||||
</div>
|
||||
|
||||
<div class="s3-title-col2-row2 staggerItem">
|
||||
<h6 class="h6">Map</h6>
|
||||
|
||||
<div class="mapouter">
|
||||
<div class="gmap_canvas">
|
||||
<iframe
|
||||
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3237.46662168324!2d51.394458715552624!3d35.76391253303978!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3f8e06f906e67b41%3A0x98bfda631d3b9527!2z2LTYsdqp2Kog2KfYsduM2LMg2Kfaqdiz24zZhg!5e0!3m2!1sen!2sfr!4v1632141129226!5m2!1sen!2sfr"
|
||||
width="400"
|
||||
height="200"
|
||||
style="border: 0"
|
||||
allowfullscreen=""
|
||||
loading="lazy"
|
||||
></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
if (process.client) require('slick-carousel')
|
||||
|
||||
import {
|
||||
fadeInAnimation,
|
||||
fadeInStaggerAnimation,
|
||||
leftToRightAnimation,
|
||||
leftToRightStaggerAnimation,
|
||||
numberAnimation,
|
||||
progressAnimation,
|
||||
rightToLeftAnimation
|
||||
} from '@/utils/animations'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
message: {
|
||||
name: '',
|
||||
email: '',
|
||||
subject: '',
|
||||
message: '',
|
||||
locale: this.$route.params.lang
|
||||
},
|
||||
validation: {},
|
||||
defaultCover: '/img/GalleryPage/page-title.png'
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
fadeInAnimation(this.$gsap)
|
||||
leftToRightAnimation(this.$gsap)
|
||||
fadeInStaggerAnimation(this.$gsap)
|
||||
leftToRightStaggerAnimation(this.$gsap)
|
||||
numberAnimation(this.$gsap)
|
||||
progressAnimation(this.$gsap)
|
||||
rightToLeftAnimation(this.$gsap)
|
||||
// Address carousel
|
||||
$('#slides').slick({
|
||||
// autoplay: true,
|
||||
accessibility: false,
|
||||
arrows: true,
|
||||
dots: false,
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
infinite: false,
|
||||
autoplaySpeed: 2000,
|
||||
rtl: this.$route.params.lang === 'fa',
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 1200,
|
||||
settings: {
|
||||
slidesToShow: 2,
|
||||
slidesToScroll: 1
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 769,
|
||||
settings: {
|
||||
slidesToShow: 1,
|
||||
slidesToScroll: 1,
|
||||
arrows: true
|
||||
}
|
||||
}
|
||||
]
|
||||
})
|
||||
//--------------------------------------------------------- Section 1
|
||||
this.$gsap
|
||||
.timeline({
|
||||
scrollTrigger: {
|
||||
trigger: '.s2',
|
||||
scrub: true,
|
||||
start: 'top top'
|
||||
}
|
||||
})
|
||||
.to($('.s1-Img-BG .parallax'), {
|
||||
duration: 9,
|
||||
opacity: 0,
|
||||
y: '50%'
|
||||
})
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
post() {
|
||||
this.validation = {}
|
||||
this.$axios
|
||||
.post('/api/public/contact', this.message)
|
||||
.then(res => {
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: 'message sent successfully'
|
||||
})
|
||||
this.message = {
|
||||
name: '',
|
||||
email: '',
|
||||
subject: '',
|
||||
message: '',
|
||||
locale: this.$route.params.lang
|
||||
}
|
||||
})
|
||||
.catch(e => {
|
||||
if (e.response.status === 422) this.validation = e.response.data.validation
|
||||
else console.log(e)
|
||||
})
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
content() {
|
||||
return this.$store.state.content.contact[this.$route.params.lang]
|
||||
},
|
||||
cover() {
|
||||
return this.$store.state.global.cover?.contact
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.mapouter {
|
||||
position: relative;
|
||||
text-align: right;
|
||||
height: 250px;
|
||||
width: 100%;
|
||||
margin-top: 20px;
|
||||
|
||||
.gmap_canvas {
|
||||
overflow: hidden;
|
||||
background: none !important;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
|
||||
iframe {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.slick-slide:nth-child(-n + 5) .s2-img h4 {
|
||||
margin-right: auto;
|
||||
text-align: left;
|
||||
}
|
||||
.slick-slide:nth-child(-n + 5) .s2-desc {
|
||||
text-align: left;
|
||||
margin-right: auto;
|
||||
direction: ltr;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
// .slick-slide .s8-tel{
|
||||
// text-align: left;
|
||||
// }
|
||||
.slick-slide .s2-tel a:lang(fa) {
|
||||
direction: ltr !important;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,91 @@
|
||||
<template>
|
||||
<div class="gallery-page page">
|
||||
<!---------------------------------- Section 1 ------------------------------------->
|
||||
<section class="s1-Img-BG">
|
||||
<div
|
||||
class="parallax"
|
||||
:style="{
|
||||
background: `linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),url(${cover ? cover : defaultCover})`
|
||||
}"
|
||||
>
|
||||
<h1 class="h1 anim-fadeIn" :style="{ color: $route.params.lang === 'fa' && '#fff' }">{{ content.s1.t1 }}</h1>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 3 ------------------------------------->
|
||||
<section class="s3-BG section">
|
||||
<div class="container">
|
||||
<template v-if="images.length">
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-3" v-for="item in images" :key="item._id">
|
||||
<div class="imgBox">
|
||||
<a :href="item.image">
|
||||
<img :src="item.thumb" :alt="item.locale[$route.params.lang].title" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<div class="row" v-else>
|
||||
<div class="col-12 s3-notFound">
|
||||
<h6 class="h6 notFound">{{ content.s3.t2 }}</h6>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
images: null,
|
||||
cover: null,
|
||||
defaultCover: '/img/GalleryPage/page-title.png'
|
||||
}
|
||||
},
|
||||
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
new SimpleLightbox('.gallery-page .s3-BG .imgBox a')
|
||||
})
|
||||
|
||||
//--------------------------------------------------------- Section 1
|
||||
// this.$gsap.timeline({
|
||||
// scrollTrigger: {
|
||||
// trigger: ".s2-BG",
|
||||
// scrub: true,
|
||||
// start: "top top",
|
||||
// }
|
||||
// })
|
||||
// .to($('.s1-Img-BG .parallax'), {
|
||||
// duration: 9,
|
||||
// opacity: 0,
|
||||
// y: '50%'
|
||||
// })
|
||||
},
|
||||
computed: {
|
||||
content() {
|
||||
return this.$store.state.content.gallery[this.$route.params.lang]
|
||||
},
|
||||
cover() {
|
||||
return this.$store.state.global.cover?.gallery
|
||||
}
|
||||
},
|
||||
|
||||
async asyncData({ $axios, params }) {
|
||||
try {
|
||||
const images = await $axios.get(`/api/public/gallery/${params.images}`)
|
||||
return {
|
||||
images: images.data
|
||||
}
|
||||
} catch (e) {
|
||||
console.log('e', e.message)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
@@ -0,0 +1,224 @@
|
||||
<template>
|
||||
<div class="gallery-page page">
|
||||
<!---------------------------------- Section 1 ------------------------------------->
|
||||
<section class="s1-Img-BG">
|
||||
<div
|
||||
class="parallax"
|
||||
:style="{
|
||||
background: `linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),url(${cover ? cover : defaultCover})`
|
||||
}"
|
||||
>
|
||||
<h1 class="h1 anim-fadeIn" :style="{ color: $route.params.lang === 'fa' && '#fff' }">{{ content.s1.t1 }}</h1>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 2 ------------------------------------->
|
||||
<!-- <section class="s2-BG">-->
|
||||
<!-- <div class="container">-->
|
||||
<!-- <div class="row">-->
|
||||
<!-- <div class="col-12">-->
|
||||
<!-- <ul>-->
|
||||
<!-- <nuxt-link-->
|
||||
<!-- class="s2-all-cat"-->
|
||||
<!-- :to="{name: 'lang-gallery',params: {lang: $route.params.lang},query: {category: 'all'}}"-->
|
||||
<!-- tag="li"-->
|
||||
<!-- >-->
|
||||
<!-- <a :class="$route.query.category === 'all' ? 'active' : null">{{ content.s2.t1 }}</a>-->
|
||||
<!-- </nuxt-link>-->
|
||||
<!-- <nuxt-link-->
|
||||
<!-- class="s2-all-cat"-->
|
||||
|
||||
<!-- :to="{name: 'lang-gallery',params: {lang: $route.params.lang},query: {category: 'no-category'}}"-->
|
||||
<!-- tag="li"-->
|
||||
<!-- >-->
|
||||
<!-- <a :class="$route.query.category === 'no-category' ? 'active' : null">{{ content.s2.t2 }}</a>-->
|
||||
<!-- </nuxt-link>-->
|
||||
<!-- <nuxt-link-->
|
||||
<!-- class="s2-all-cat"-->
|
||||
|
||||
<!-- v-for="item in galleryCategories"-->
|
||||
<!-- :key="item._id"-->
|
||||
<!-- :to="{name: 'lang-gallery',params: {lang: $route.params.lang},query: {category: item.locale[$route.params.lang].title}}"-->
|
||||
<!-- tag="li"-->
|
||||
<!-- >-->
|
||||
<!-- <a :class="$route.query.category === item.locale[$route.params.lang].title ? 'active' : null">{{-->
|
||||
<!-- item.locale[$route.params.lang].title-->
|
||||
<!-- }}</a>-->
|
||||
<!-- </nuxt-link>-->
|
||||
<!-- </ul>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </section>-->
|
||||
|
||||
<!---------------------------------- Section 3 ------------------------------------->
|
||||
<section class="s3-BG section">
|
||||
<div class="container">
|
||||
<template v-if="galleryCategories.length">
|
||||
<!-- start gallery row -->
|
||||
<!-- <div class="col-12 col-md-3" v-for="(item,index) in imageChunk" :key="index">-->
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-3" v-for="item in galleryCategories" :key="item._id">
|
||||
<nuxt-link :to="{ name: 'lang-gallery-images', params: { lang: $route.params.lang, images: item._id } }">
|
||||
<div class="imgBox">
|
||||
<img
|
||||
:src="item.thumb.includes('undefined') ? '/img/default-img.png' : item.thumb"
|
||||
:alt="item.locale[$route.params.lang].title"
|
||||
/>
|
||||
<h4>{{ item.locale[$route.params.lang].title }}</h4>
|
||||
</div>
|
||||
</nuxt-link>
|
||||
</div>
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- <pre>{{ filteredImages }}</pre>-->
|
||||
</div>
|
||||
<!-- <div class="gallery--row" v-for="(item,index) in imageChunk" :key="index"-->
|
||||
<!-- :class="index%2 !== 0 ? 'gallery--row-reverse' : null"-->
|
||||
|
||||
<!-- >-->
|
||||
<!-- <div class="row top">-->
|
||||
<!-- <div class="col-5 left anim-fadeIn">-->
|
||||
<!-- <div class="imgBox" v-if="item.length >= 1">-->
|
||||
<!-- <a :href="item[0].image">-->
|
||||
<!-- <img :src="item[0].thumb" :title="item[0].locale[$route.params.lang].caption"-->
|
||||
<!-- :alt="item[0].locale[$route.params.lang].caption">-->
|
||||
<!-- </a>-->
|
||||
<!-- </div>-->
|
||||
<!--<!– <div class="txtBox anim-fadeIn" v-if="item.length >= 3">–>-->
|
||||
<!--<!– <img src="/img/GalleryPage/logo-colored.svg" alt=""/>–>-->
|
||||
<!--<!– <p>–>-->
|
||||
<!--<!– {{ content.s3.t1 }}–>-->
|
||||
<!--<!– </p>–>-->
|
||||
<!--<!– </div>–>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="col-7 right anim-fadeIn">-->
|
||||
<!-- <div class="imgBox" v-if="item.length >= 2">-->
|
||||
<!-- <a :href="item[1].image">-->
|
||||
<!-- <img :src="item[1].thumb" :title="item[1].locale[$route.params.lang].caption"-->
|
||||
<!-- :alt="item[1].locale[$route.params.lang].caption">-->
|
||||
<!-- </a>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="imgBox" v-if="item.length >= 3">-->
|
||||
<!-- <a :href="item[2].image">-->
|
||||
<!-- <img :src="item[2].thumb" :title="item[2].locale[$route.params.lang].caption"-->
|
||||
<!-- :alt="item[2].locale[$route.params.lang].caption">-->
|
||||
<!-- </a>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="row bottom" v-if="item.length >= 4">-->
|
||||
<!-- <div class="col-8 anim-fadeIn">-->
|
||||
<!-- <div class="imgBox" v-if="item.length >= 4">-->
|
||||
<!-- <a :href="item[3].image">-->
|
||||
<!-- <img :src="item[3].thumb" :title="item[3].locale[$route.params.lang].caption"-->
|
||||
<!-- :alt="item[3].locale[$route.params.lang].caption">-->
|
||||
<!-- </a>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="col-4 anim-fadeIn">-->
|
||||
<!-- <div class="imgBox" v-if="item.length >= 5">-->
|
||||
<!-- <a :href="item[4].image">-->
|
||||
<!-- <img :src="item[4].thumb" :title="item[4].locale[$route.params.lang].caption"-->
|
||||
<!-- :alt="item[4].locale[$route.params.lang].caption">-->
|
||||
<!-- </a>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- end gallery row -->
|
||||
</template>
|
||||
|
||||
<div class="row" v-else>
|
||||
<div class="col-12 s3-notFound">
|
||||
<h6 class="h6 notFound">{{ content.s3.t2 }}</h6>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
fadeInAnimation,
|
||||
fadeInStaggerAnimation,
|
||||
leftToRightAnimation,
|
||||
leftToRightStaggerAnimation,
|
||||
numberAnimation,
|
||||
progressAnimation,
|
||||
rightToLeftAnimation
|
||||
} from '@/utils/animations'
|
||||
|
||||
export default {
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
fadeInAnimation(this.$gsap)
|
||||
leftToRightAnimation(this.$gsap)
|
||||
fadeInStaggerAnimation(this.$gsap)
|
||||
leftToRightStaggerAnimation(this.$gsap)
|
||||
numberAnimation(this.$gsap)
|
||||
progressAnimation(this.$gsap)
|
||||
rightToLeftAnimation(this.$gsap)
|
||||
})
|
||||
//--------------------------------------------------------- Section 1
|
||||
// this.$gsap.timeline({
|
||||
// scrollTrigger: {
|
||||
// trigger: ".s2-BG",
|
||||
// scrub: true,
|
||||
// start: "top top",
|
||||
// }
|
||||
// })
|
||||
// .to($('.s1-Img-BG .parallax'), {
|
||||
// duration: 9,
|
||||
// opacity: 0,
|
||||
// y: '50%'
|
||||
// })
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
galleryCategories: null,
|
||||
images: null,
|
||||
defaultCover: '/img/GalleryPage/page-title.png'
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
filteredImages() {
|
||||
if (this.$route.query.category === 'all') return this.images
|
||||
else if (this.$route.query.category === 'no-category') return this.images.filter(item => item.noCategory)
|
||||
else
|
||||
return this.images.filter(
|
||||
item =>
|
||||
!item.noCategory && item.category.locale[this.$route.params.lang].title === this.$route.query.category
|
||||
)
|
||||
},
|
||||
imageChunk() {
|
||||
const images = this.filteredImages
|
||||
const chunkSize = 5
|
||||
let imageChunk = []
|
||||
let chunk = []
|
||||
images.forEach((item, index) => {
|
||||
chunk.push(item)
|
||||
if ((index + 1) % chunkSize === 0) {
|
||||
imageChunk.push(chunk)
|
||||
chunk = []
|
||||
}
|
||||
if (index === images.length - 1 && chunk.length) imageChunk.push(chunk)
|
||||
})
|
||||
return imageChunk
|
||||
},
|
||||
content() {
|
||||
return this.$store.state.content.gallery[this.$route.params.lang]
|
||||
},
|
||||
cover() {
|
||||
return this.$store.state.global.cover?.gallery
|
||||
}
|
||||
},
|
||||
async asyncData({ $axios }) {
|
||||
const galleryCategories = await $axios.get(`/api/public/galleryCategories`)
|
||||
return {
|
||||
galleryCategories: galleryCategories.data
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,254 @@
|
||||
<template>
|
||||
<div class="details-project-page page">
|
||||
<!---------------------------------- Section 1 ------------------------------------->
|
||||
<section
|
||||
class="s1-Img-BG"
|
||||
:style="{ backgroundImage: `linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url(${project.cover})` }"
|
||||
>
|
||||
<div class="parallax">
|
||||
<h1 class="h1 anim-fadeIn">{{ project.locale[$route.params.lang].title }}</h1>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 2 ------------------------------------->
|
||||
<section class="s2-Img-BG">
|
||||
<div class="parallax">
|
||||
<div class="row">
|
||||
<div class="col-12 col-xl-6 col-lg-6 col-md-12 col-sm-12 s2-img">
|
||||
<img :src="project.s2_image" :alt="project.locale[$route.params.lang].title" />
|
||||
</div>
|
||||
<div class="col-12 col-xl-6 col-lg-6 col-md-12 col-sm-12 s2-desc-row">
|
||||
<div class="s2-body d-flex align-items-center">
|
||||
<div class="container anim-fadeInStagger">
|
||||
<div class="row">
|
||||
<h2 class="h2 staggerItem">{{ content.s2.t1 }}</h2>
|
||||
<div class="s2-body-desc staggerItem">
|
||||
<span>{{ project.locale[$route.params.lang].description }}</span>
|
||||
</div>
|
||||
<div class="s2-Desc-View staggerItem">
|
||||
<div class="row align-items-stretch s2-list-row">
|
||||
<div class="col-12 col-md-2 s2-Desc" v-if="project.locale[$route.params.lang].client">
|
||||
<h6 class="h6">{{ content.s2.t2 + ' : ' }}</h6>
|
||||
</div>
|
||||
<div
|
||||
class="col-12 col-md-10 mb-3 mb-md-0 s2-Desc"
|
||||
v-if="project.locale[$route.params.lang].client"
|
||||
>
|
||||
<p>{{ project.locale[$route.params.lang].client || '******' }}</p>
|
||||
</div>
|
||||
<div class="col-6 col-md-2 s2-Desc" v-if="project.locale[$route.params.lang].skills">
|
||||
<h6 class="h6">{{ content.s2.t3 + ' : ' }}</h6>
|
||||
</div>
|
||||
<div
|
||||
class="col-6 col-md-10 mb-3 mb-md-0 s2-Desc"
|
||||
v-if="project.locale[$route.params.lang].skills"
|
||||
>
|
||||
<p>{{ project.locale[$route.params.lang].size || '******' }}</p>
|
||||
</div>
|
||||
<div class="col-6 col-md-2 s2-Desc">
|
||||
<h6 class="h6" v-if="project.locale[$route.params.lang].area">{{ content.s2.t4 + ' : ' }}</h6>
|
||||
</div>
|
||||
<div
|
||||
class="col-6 col-md-10 mb-3 mb-md-0 s2-Desc"
|
||||
v-if="project.locale[$route.params.lang].website"
|
||||
>
|
||||
<p>{{ project.locale[$route.params.lang].area || '******' }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 3 ------------------------------------->
|
||||
<section class="s3-BG">
|
||||
<div class="parallax">
|
||||
<div class="container">
|
||||
<div class="s3-body anim-fadeInStagger">
|
||||
<h6 class="h6 staggerItem">{{ project.locale[$route.params.lang].s3_title }}</h6>
|
||||
<div class="s3-desc staggerItem">
|
||||
<span>{{ project.locale[$route.params.lang].s3_description }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 4 ------------------------------------->
|
||||
<section class="s4-Img-BG">
|
||||
<div class="parallax">
|
||||
<div id="slides">
|
||||
<div class="slide" v-if="project.s4_image">
|
||||
<div class="content">
|
||||
<img :src="project.s4_image" :alt="project.locale[$route.params.lang].title" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="slide" v-for="item in project.images" :key="item._id">
|
||||
<div class="content">
|
||||
<img :src="item.thumb" :alt="project.locale[$route.params.lang].title" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section lightBox ------------------------------------->
|
||||
<section class="lightBoxImages">
|
||||
<div class="images">
|
||||
<a
|
||||
v-for="(item, index) in project.images"
|
||||
:key="item._id + 1"
|
||||
:class="index === 0 ? 'btn' : 'hidden'"
|
||||
:href="item.image"
|
||||
>{{ content.s5.t1 }}</a
|
||||
>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- <!–-------------------------------- Section 5 -----------------------------------–>-->
|
||||
<!-- <section class="s5-BG">-->
|
||||
<!-- <div class="parallax">-->
|
||||
<!-- <div class="row">-->
|
||||
<!-- <div class="col-12 col-xl-6 col-lg-6 col-md-12 col-sm-12 paddingCol">-->
|
||||
<!-- <div class="s5-Img">-->
|
||||
<!-- <img :src="project.s5_image" :alt="project.locale[$route.params.lang].title"-->
|
||||
<!-- />-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- <div class="col-12 col-xl-6 col-lg-6 col-md-12 col-sm-12 s5-Body paddingCol">-->
|
||||
<!-- <div class="container anim-fadeInStagger">-->
|
||||
<!-- <div class="s5-Title staggerItem">-->
|
||||
<!-- <h6 class="h6">{{ project.locale[$route.params.lang].s5_title }}</h6>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="s5-desc staggerItem">-->
|
||||
<!-- <span>{{ project.locale[$route.params.lang].s5_description }}</span>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </section>-->
|
||||
|
||||
<!-- <!–-------------------------------- Section 6 -----------------------------------–>-->
|
||||
<!-- <section class="s6-BG">-->
|
||||
<!-- <div class="parallax">-->
|
||||
<!-- <div class="row">-->
|
||||
<!-- <div class="col-12 col-xl-6 col-lg-6 col-md-12 col-sm-12 s6-Body paddingCol">-->
|
||||
<!-- <div class="container s6-body-row anim-fadeInStagger">-->
|
||||
<!-- <div class="s6-Title staggerItem">-->
|
||||
<!-- <h6 class="h6">{{ project.locale[$route.params.lang].s6_title }}</h6>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="s6-desc staggerItem">-->
|
||||
<!-- <span>{{ project.locale[$route.params.lang].s6_description }}</span>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="col-12 col-xl-6 col-lg-6 col-md-12 col-sm-12 paddingCol">-->
|
||||
<!-- <div class="s6-Img">-->
|
||||
<!-- <img :src="project.s6_image" :alt="project.locale[$route.params.lang].title"-->
|
||||
<!-- />-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </section>-->
|
||||
|
||||
<!---------------------------------- Section 7 ------------------------------------->
|
||||
<section class="s7-BG">
|
||||
<div class="parallax">
|
||||
<div class="container">
|
||||
<div class="s7-body">
|
||||
<h6 class="h6">{{ content.s7.t1 }}</h6>
|
||||
<div class="s7-desc">
|
||||
<span>{{ content.s7.t2 }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
if (process.client) require('slick-carousel')
|
||||
|
||||
import {
|
||||
fadeInAnimation,
|
||||
fadeInStaggerAnimation,
|
||||
leftToRightAnimation,
|
||||
leftToRightStaggerAnimation,
|
||||
numberAnimation,
|
||||
progressAnimation,
|
||||
rightToLeftAnimation
|
||||
} from '@/utils/animations'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
project: null
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
fadeInAnimation(this.$gsap)
|
||||
leftToRightAnimation(this.$gsap)
|
||||
fadeInStaggerAnimation(this.$gsap)
|
||||
leftToRightStaggerAnimation(this.$gsap)
|
||||
numberAnimation(this.$gsap)
|
||||
progressAnimation(this.$gsap)
|
||||
rightToLeftAnimation(this.$gsap)
|
||||
//
|
||||
new SimpleLightbox('.details-project-page .lightBoxImages a')
|
||||
|
||||
$('#slides').slick({
|
||||
autoplay: true,
|
||||
accessibility: false,
|
||||
arrows: false,
|
||||
dots: false,
|
||||
rtl: this.$route.params.lang === 'fa'
|
||||
// infinite: true,
|
||||
// speed: 500,
|
||||
// fade: true,
|
||||
// cssEase: "linear",
|
||||
})
|
||||
|
||||
//--------------------------------------------------------- Section 1
|
||||
this.$gsap
|
||||
.timeline({
|
||||
scrollTrigger: {
|
||||
trigger: '.s2-Img-BG',
|
||||
scrub: true,
|
||||
start: 'top top'
|
||||
}
|
||||
})
|
||||
.to($('.s1-Img-BG .parallax'), {
|
||||
duration: 9,
|
||||
opacity: 0,
|
||||
y: '50%'
|
||||
})
|
||||
})
|
||||
},
|
||||
async asyncData({ $axios, params, error }) {
|
||||
try {
|
||||
const project = await $axios.get(`/api/public/project/${params.project}`)
|
||||
|
||||
return {
|
||||
project: project.data
|
||||
}
|
||||
} catch (e) {
|
||||
error({ status: 404, message: 'page not found' })
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
content() {
|
||||
return this.$store.state.content.detailsProject[this.$route.params.lang]
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,261 @@
|
||||
<template>
|
||||
<div class="project-page page">
|
||||
<!---------------------------------- Section 1 ------------------------------------->
|
||||
<section class="s1-Img-BG">
|
||||
<div
|
||||
class="parallax"
|
||||
:style="{
|
||||
background: `linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),url(${cover ? cover : defaultCover})`
|
||||
}"
|
||||
>
|
||||
<h1 class="h1 anim-fadeIn" :style="{ color: $route.params.lang === 'fa' && '#fff' }">{{ content.s1.t1 }}</h1>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section Categories ------------------------------------->
|
||||
<section class="categories">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<nav>
|
||||
<ul>
|
||||
<nuxt-link
|
||||
class="all-categories"
|
||||
:to="{ name: 'lang-projects', params: { lang: $route.params.lang }, query: { category: 'all' } }"
|
||||
tag="li"
|
||||
>
|
||||
<a :class="$route.query.category === 'all' ? 'active' : null">{{ content.s2.t9 }}</a>
|
||||
</nuxt-link>
|
||||
<nuxt-link
|
||||
v-for="item in projectCat"
|
||||
:key="item.id"
|
||||
class="all-categories"
|
||||
:to="{ name: 'lang-projects', params: { lang: $route.params.lang }, query: { category: item._id } }"
|
||||
tag="li"
|
||||
>
|
||||
<a :class="$route.query.category === item.id ? 'active' : null">{{ categoryName(item._id) }}</a>
|
||||
</nuxt-link>
|
||||
<!-- <pre>{{ projectCat }}</pre>-->
|
||||
<!-- :class="filter === false ? 'active' : null"-->
|
||||
<!-- >{{ content.s2.t9 }}</p>-->
|
||||
<!-- </li>-->
|
||||
<!-- <li-->
|
||||
<!-- class="all-categories"-->
|
||||
<!-- v-for="item in projectCat"-->
|
||||
<!-- :key="item.id"-->
|
||||
<!-- @click="filter = item.id"-->
|
||||
<!-- >-->
|
||||
<!-- <p-->
|
||||
<!-- :class="filter === item.id ? 'active' : null">-->
|
||||
<!-- {{-->
|
||||
<!-- categoryName(item.id)-->
|
||||
<!-- }}-->
|
||||
<!-- </p>-->
|
||||
<!-- </li>-->
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 2 ------------------------------------->
|
||||
<section class="s2-BG section">
|
||||
<div class="parallax">
|
||||
<div class="container">
|
||||
<!-- <pre>{{projects}}</pre>-->
|
||||
|
||||
<!-- <div class="row" v-if="projects.length > 0">-->
|
||||
<!-- <div class="col-12 mb-2 anim-fadeIn paddingCol" v-for="(item , index) in projects" :key="item._id">-->
|
||||
<!-- <div class="row" :class="index%2 ? 'reverse' : null">-->
|
||||
<!-- <div class="col-12 col-sm-12 col-md-12 col-lg-6 paddingCol ">-->
|
||||
<!-- <div class="s2-img">-->
|
||||
<!-- <img :src="item.thumb" :alt="item.locale[$route.params.lang].title"/>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- <div class="col-12 col-sm-12 col-md-12 col-lg-4 d-flex align-items-center paddingCol">-->
|
||||
<!-- <div class="s2-item">-->
|
||||
<!-- <h6 class="h6">{{ item.locale[$route.params.lang].title }}</h6>-->
|
||||
<!-- <p>{{ item.category.locale[$route.params.lang].title }}</p>-->
|
||||
<!-- <span>{{ item.locale[$route.params.lang].short_description }}</span>-->
|
||||
<!-- <nuxt-link :to="{name: 'lang-projects-project',params: {lang: $route.params.lang,project: item.locale[$route.params.lang].title}}" class="s2-reading">-->
|
||||
<!-- <p>{{ content.s2.t1 }}</p>-->
|
||||
<!-- <i class="fas" :class="$route.params.lang === 'en' ? 'fa-arrow-right' : 'fa-arrow-left'"></i>-->
|
||||
<!-- </nuxt-link>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
|
||||
<div class="filterTableByTags" v-if="currentCategory">
|
||||
<div class="tag" :class="activeTag === 'all' && 'active'" @click="activeTag = 'all'">
|
||||
<span>{{ $route.params.lang === 'en' ? 'All' : 'همه' }}</span>
|
||||
</div>
|
||||
<div
|
||||
class="tag"
|
||||
v-for="tag in currentCategory.tags"
|
||||
:key="tag._id"
|
||||
:class="activeTag === tag._id && 'active'"
|
||||
@click="activeTag = tag._id"
|
||||
>
|
||||
<span>{{ tag.locale[$route.params.lang].name }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<el-table :data="filteredProjects" class="s2-table">
|
||||
<el-table-column type="index" width="80" label="#"> </el-table-column>
|
||||
<el-table-column :label="content.s2.t3" :prop="`locale[${$route.params.lang}].title`" width="500">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column :label="content.s2.t4" width="200">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.locale[$route.params.lang].client || '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :label="content.s2.t5">
|
||||
<template slot-scope="scope">
|
||||
{{ jDate(scope.row.project_date) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :label="content.s2.t10">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.locale[$route.params.lang].size || '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :label="content.s2.t11">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.locale[$route.params.lang].area || '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :label="content.s2.t6" width="140">
|
||||
<template slot-scope="scope">
|
||||
<nuxt-link
|
||||
v-if="scope.row.has_details"
|
||||
class="btn btn-primary s2-table-btn"
|
||||
:to="{ name: 'lang-projects-project', params: { lang: $route.params.lang, project: scope.row._id } }"
|
||||
>
|
||||
{{ content.s2.t7 }}
|
||||
</nuxt-link>
|
||||
<a class="btn btn-primary s2-table-disable" :title="content.s2.t8" v-else>{{ content.s2.t7 }}</a>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
fadeInAnimation,
|
||||
fadeInStaggerAnimation,
|
||||
leftToRightAnimation,
|
||||
leftToRightStaggerAnimation,
|
||||
numberAnimation,
|
||||
progressAnimation,
|
||||
rightToLeftAnimation
|
||||
} from '@/utils/animations'
|
||||
|
||||
import moment from 'moment-jalaali'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
projects: null,
|
||||
projectCat: null,
|
||||
activeTag: 'all',
|
||||
cover: null,
|
||||
defaultCover: '/img/GalleryPage/page-title.png'
|
||||
// filter: this.$route.query.category
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
fadeInAnimation(this.$gsap)
|
||||
leftToRightAnimation(this.$gsap)
|
||||
fadeInStaggerAnimation(this.$gsap)
|
||||
leftToRightStaggerAnimation(this.$gsap)
|
||||
numberAnimation(this.$gsap)
|
||||
progressAnimation(this.$gsap)
|
||||
rightToLeftAnimation(this.$gsap)
|
||||
//--------------------------------------------------------- Section 1
|
||||
this.$gsap
|
||||
.timeline({
|
||||
scrollTrigger: {
|
||||
trigger: '.s2-BG',
|
||||
scrub: true,
|
||||
start: 'top top'
|
||||
}
|
||||
})
|
||||
.to($('.s1-Img-BG .parallax'), {
|
||||
duration: 9,
|
||||
opacity: 0,
|
||||
y: '50%'
|
||||
})
|
||||
})
|
||||
},
|
||||
async asyncData({ $axios, error }) {
|
||||
try {
|
||||
const projects = await $axios.get(`/api/public/projects`)
|
||||
const projectCat = await $axios.get('/api/public/projectCategories')
|
||||
const cover = await $axios.get('/api/public/cover')
|
||||
|
||||
return {
|
||||
projects: projects.data,
|
||||
projectCat: projectCat.data,
|
||||
cover: cover.data.contact
|
||||
}
|
||||
} catch (e) {
|
||||
error({ status: 500, message: 'there is a problem here' })
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
content() {
|
||||
return this.$store.state.content.projects[this.$route.params.lang]
|
||||
},
|
||||
|
||||
currentCategory() {
|
||||
return this.projectCat.find(item => item._id === this.categoryId)
|
||||
},
|
||||
|
||||
categoryId() {
|
||||
return this.$route.query?.category
|
||||
},
|
||||
|
||||
filteredProjects() {
|
||||
if (this.categoryId === 'all') return this.projects
|
||||
const projectsByCat = this.projects.filter(item => item.category._id === this.categoryId)
|
||||
// check tag
|
||||
if (this.activeTag === 'all') return projectsByCat
|
||||
return projectsByCat.filter(item => item.tag === this.activeTag)
|
||||
}
|
||||
},
|
||||
|
||||
watch: {
|
||||
categoryId(newVal, oldVal) {
|
||||
this.activeTag = 'all'
|
||||
// this.$nuxt.refresh()
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
categoryName(id) {
|
||||
return this.projectCat.filter(item => item._id === id)[0].locale[this.$route.params.lang].name
|
||||
},
|
||||
jDate(date) {
|
||||
let m = moment(date, 'jYYYY')
|
||||
if (this.$route.params.lang === 'fa') return date
|
||||
else return m.format('YYYY')
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.reverse {
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<div class="pwa--page">
|
||||
<!-- sheet calculation module -->
|
||||
<section>
|
||||
<div class="section-title">
|
||||
<h2>{{ content.s10.t1 }}</h2>
|
||||
</div>
|
||||
<SheetWCM />
|
||||
</section>
|
||||
|
||||
<!-- pipe calculation module -->
|
||||
<section class="mt-5">
|
||||
<div class="section-title">
|
||||
<h2>{{ content.s10.t8 }}</h2>
|
||||
</div>
|
||||
<PipeWCM />
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'PwaPage',
|
||||
layout: 'pwa',
|
||||
computed: {
|
||||
content() {
|
||||
return this.$store.state.content.home[this.$route.params.lang]
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,103 @@
|
||||
<template>
|
||||
<div class="search_page">
|
||||
<!---------------------------------- Section 1 ------------------------------------->
|
||||
<section class="s1-Img-BG">
|
||||
<div
|
||||
class="parallax"
|
||||
:style="{
|
||||
background: `linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),url(${cover ? cover : defaultCover})`
|
||||
}"
|
||||
>
|
||||
<h1 class="h1 anim-fadeIn" :style="{ color: $route.params.lang === 'fa' && '#fff' }">{{ content.s1.t1 }}</h1>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!---------------------------------- Section 2 ------------------------------------->
|
||||
<div class="s2">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12 view-items" v-if="blogs.length">
|
||||
<h2>{{ content.s2.t1 }}</h2>
|
||||
<nuxt-link
|
||||
:to="{
|
||||
name: 'lang-blog-post',
|
||||
params: { lang: $route.params.lang, post: item.locale[$route.params.lang].title }
|
||||
}"
|
||||
class="view-item"
|
||||
v-for="item in blogs"
|
||||
:key="item._id"
|
||||
>
|
||||
<i class="fa-solid fa-circle-check"></i>
|
||||
<p>{{ item.locale[$route.params.lang].title }}</p>
|
||||
</nuxt-link>
|
||||
</div>
|
||||
|
||||
<div class="col-12 view-items" v-if="categoryGallery.length">
|
||||
<h2>{{ content.s2.t2 }}</h2>
|
||||
<nuxt-link
|
||||
:to="{ name: 'lang-gallery-images', params: { lang: $route.params.lang, images: item._id } }"
|
||||
class="view-item"
|
||||
v-for="item in categoryGallery"
|
||||
:key="item._id"
|
||||
>
|
||||
<i class="fa-solid fa-circle-check"></i>
|
||||
<p>{{ item.locale[$route.params.lang].title }}</p>
|
||||
</nuxt-link>
|
||||
</div>
|
||||
|
||||
<div class="col-12 view-items" v-if="projects.length">
|
||||
<h2>{{ content.s2.t3 }}</h2>
|
||||
<nuxt-link
|
||||
:to="{ name: 'lang-projects', params: { lang: $route.params.lang }, query: { category: 'all' } }"
|
||||
class="view-item"
|
||||
v-for="item in projects"
|
||||
:key="item._id"
|
||||
>
|
||||
<i class="fas fa-circle-check"></i>
|
||||
<p>{{ item.locale[$route.params.lang].title }}</p>
|
||||
</nuxt-link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
blogs: [],
|
||||
categoryGallery: [],
|
||||
projects: [],
|
||||
defaultCover: '/img/GalleryPage/page-title.png'
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
content() {
|
||||
return this.$store.state.content.search[this.$route.params.lang]
|
||||
},
|
||||
cover() {
|
||||
return this.$store.state.global.cover?.contact
|
||||
}
|
||||
},
|
||||
|
||||
async asyncData({ $axios, query }) {
|
||||
console.log('query', query)
|
||||
try {
|
||||
const search = await $axios.post(`/api/public/search?terms=${query.terms}`)
|
||||
|
||||
return {
|
||||
blogs: search.data.blogs,
|
||||
categoryGallery: search.data.categoryGallery,
|
||||
projects: search.data.projects
|
||||
}
|
||||
} catch (e) {
|
||||
console.log('------e', e)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
@@ -0,0 +1,136 @@
|
||||
<template>
|
||||
<CRow class="justify-content-center">
|
||||
<CCol lg="5">
|
||||
<CCardGroup>
|
||||
<CCard class="p-4">
|
||||
<CCardBody>
|
||||
<CForm @submit.prevent="doLogin">
|
||||
<h1 class="text-muted text-center mb-5">پنل مدیریت اُریس اوکسین</h1>
|
||||
<CInput
|
||||
:class="validation.username ? 'err' : null"
|
||||
placeholder="نام کاربری"
|
||||
:description="validation.username ? validation.username.msg : null"
|
||||
autocomplete="username email"
|
||||
v-model="login.username"
|
||||
>
|
||||
<template #prepend-content>
|
||||
<CIcon name="cil-user"/>
|
||||
</template>
|
||||
</CInput>
|
||||
|
||||
<div class="butt">
|
||||
<CInput
|
||||
:class="validation.password ? 'err' : null"
|
||||
placeholder="کلمه عبور"
|
||||
:type="passwordState"
|
||||
:description="validation.password ? validation.password.msg : null"
|
||||
autocomplete="curent-password"
|
||||
v-model="login.password"
|
||||
>
|
||||
|
||||
<template #prepend-content>
|
||||
<CIcon name="cil-lock-locked"/>
|
||||
</template>
|
||||
</CInput>
|
||||
<i @click="showPass = !showPass" class="far fa-eye"></i>
|
||||
</div>
|
||||
|
||||
<CInputCheckbox label="مرا به خاطر بسپار" @update:checked="val => login.remember_me = val"/>
|
||||
|
||||
<p class="text-muted mt-3" style="font-size: 11px;">*درصورتی که گزیه "مرا به خاطر بسپار" را فعال نکنید بعد از 1 ساعت باید دوباره وارد سیستم شوید.</p>
|
||||
|
||||
<CRow>
|
||||
<CCol col="12" class="text-right mt-2">
|
||||
<CButton color="primary" type="submit" class="px-4">ورود</CButton>
|
||||
</CCol>
|
||||
<!-- <CCol col="6" class="text-right">-->
|
||||
<!-- <CButton color="link" class="px-0">Forgot password?</CButton>-->
|
||||
<!-- <CButton color="link" class="d-lg-none">Register now!</CButton>-->
|
||||
<!-- </CCol>-->
|
||||
</CRow>
|
||||
</CForm>
|
||||
</CCardBody>
|
||||
</CCard>
|
||||
<!-- <CCard-->
|
||||
<!-- color="primary"-->
|
||||
<!-- text-color="white"-->
|
||||
<!-- class="text-center py-5 d-md-down-none"-->
|
||||
<!-- body-wrapper>-->
|
||||
<!-- <CCardBody>-->
|
||||
<!-- <h2>Sign up</h2>-->
|
||||
<!-- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>-->
|
||||
<!-- <CButton-->
|
||||
<!-- color="light"-->
|
||||
<!-- variant="outline"-->
|
||||
<!-- size="lg"-->
|
||||
<!-- >-->
|
||||
<!-- Register Now!-->
|
||||
<!-- </CButton>-->
|
||||
<!-- </CCardBody>-->
|
||||
<!-- </CCard>-->
|
||||
</CCardGroup>
|
||||
</CCol>
|
||||
</CRow>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
showPass: false,
|
||||
login: {
|
||||
username: '',
|
||||
password: '',
|
||||
remember_me: false
|
||||
},
|
||||
validation: {}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
passwordState() {
|
||||
return this.showPass ? "text" : "password"
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
doLogin() {
|
||||
this.validation = {}
|
||||
|
||||
this.$auth.loginWith('local', {
|
||||
data: this.login
|
||||
})
|
||||
.then(response => {
|
||||
window.location.replace('/admin')
|
||||
})
|
||||
.catch(err => {
|
||||
if (err.response.status === 422) this.validation = err.response.data.validation
|
||||
else console.log(err.response.data)
|
||||
})
|
||||
}
|
||||
},
|
||||
layout: 'admin-auth'
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.butt {
|
||||
position: relative;
|
||||
|
||||
i {
|
||||
position: absolute;
|
||||
left: 7px;
|
||||
top: 11px;
|
||||
z-index: 3;
|
||||
cursor: pointer;
|
||||
color: rgba(#000, 0.5);
|
||||
-webkit-transition: 0.2s;
|
||||
-moz-transition: 0.2s;
|
||||
-ms-transition: 0.2s;
|
||||
-o-transition: 0.2s;
|
||||
transition: 0.2s;
|
||||
|
||||
&:hover {
|
||||
color: #000;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,156 @@
|
||||
<template>
|
||||
<div>
|
||||
<CustomSubHeader>
|
||||
<CBreadcrumb class="border-0 mb-0">{{ title }}</CBreadcrumb>
|
||||
<CButton size="sm" color="primary" class="mr-auto" :to="{name: 'admin-blog-categories'}">برگشت به صفحه قبل</CButton>
|
||||
<CButton v-if="$route.params.category === 'new'" size="sm" color="success" class="mr-1" @click="post">افزودن</CButton>
|
||||
<CButton v-else size="sm" color="success" class="mr-1" @click="update">بروزرسانی</CButton>
|
||||
</CustomSubHeader>
|
||||
<CRow>
|
||||
<CCol lg="6">
|
||||
<CCard>
|
||||
<CCardBody>
|
||||
<CForm>
|
||||
<CRow>
|
||||
<CCol sm="12">
|
||||
<CInput
|
||||
:class="validation.fa_title ? 'err' : null"
|
||||
label="عنوان فارسی"
|
||||
:description="validation.fa_title ? validation.fa_title.msg : null"
|
||||
v-model="blogCategory.locale.fa.title"
|
||||
/>
|
||||
<CInput
|
||||
:class="validation.fa_description ? 'err' : null"
|
||||
label="توضیح فارسی"
|
||||
:description="validation.fa_description ? validation.fa_description.msg : null"
|
||||
v-model="blogCategory.locale.fa.description"
|
||||
/>
|
||||
<el-divider></el-divider>
|
||||
<CInput
|
||||
:class="validation.en_title ? 'err' : null"
|
||||
label="عنوان انگلیسی"
|
||||
:description="validation.en_title ? validation.en_title.msg : null"
|
||||
v-model="blogCategory.locale.en.title"
|
||||
/>
|
||||
<CInput
|
||||
:class="validation.en_description ? 'err' : null"
|
||||
label="توضیح انگلیسی"
|
||||
:description="validation.en_description ? validation.en_description.msg : null"
|
||||
v-model="blogCategory.locale.en.description"
|
||||
/>
|
||||
</CCol>
|
||||
</CRow>
|
||||
</CForm>
|
||||
</CCardBody>
|
||||
</CCard>
|
||||
</CCol>
|
||||
|
||||
</CRow>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
blogCategory: null,
|
||||
validation: {}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
title() {
|
||||
return this.$route.params.category === 'new' ? 'افزودن دسته بندی' : 'مشاهده دسته بندی'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
post() {
|
||||
this.validation = {}
|
||||
const data = {
|
||||
fa_title: this.blogCategory.locale.fa.title,
|
||||
en_title: this.blogCategory.locale.en.title,
|
||||
fa_description: this.blogCategory.locale.fa.description,
|
||||
en_description: this.blogCategory.locale.en.description
|
||||
}
|
||||
|
||||
this.$axios.post(`/api/admin/blogCategory`, data)
|
||||
.then(response => {
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: 'دسته بندی با موفقیت ایجاد شد.'
|
||||
})
|
||||
this.$router.push({name: 'admin-blog-categories'})
|
||||
})
|
||||
.catch(err => {
|
||||
if (err.response.status === 401) {
|
||||
return this.$message({
|
||||
type: 'error',
|
||||
message: 'لطفا دوباره وارد سیستم شوید.'
|
||||
})
|
||||
}
|
||||
if (err.response.status === 422) this.validation = err.response.data.validation
|
||||
else console.log(err.response.data)
|
||||
})
|
||||
},
|
||||
update() {
|
||||
this.validation = {}
|
||||
const data = {
|
||||
fa_title: this.blogCategory.locale.fa.title,
|
||||
en_title: this.blogCategory.locale.en.title,
|
||||
fa_description: this.blogCategory.locale.fa.description,
|
||||
en_description: this.blogCategory.locale.en.description
|
||||
}
|
||||
this.$axios.put(`/api/admin/blogCategory/${this.blogCategory._id}`, data)
|
||||
.then(response => {
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: 'اطلاعات بروزرسانی شد.'
|
||||
})
|
||||
})
|
||||
.catch(err => {
|
||||
if (err.response.status === 401) {
|
||||
return this.$message({
|
||||
type: 'error',
|
||||
message: 'لطفا دوباره وارد سیستم شوید.'
|
||||
})
|
||||
}
|
||||
if (err.response.status === 422) this.validation = err.response.data.validation
|
||||
else console.log(err.response.data)
|
||||
})
|
||||
}
|
||||
},
|
||||
head() {
|
||||
return {
|
||||
title: this.title
|
||||
}
|
||||
},
|
||||
layout: 'admin',
|
||||
async asyncData({$axios, params, error}) {
|
||||
try {
|
||||
if (params.category !== 'new') {
|
||||
const blogCategory = await $axios.get(`/api/admin/blogCategory/${params.category}`)
|
||||
return {
|
||||
blogCategory: blogCategory.data
|
||||
}
|
||||
} else {
|
||||
return {
|
||||
blogCategory: {
|
||||
locale: {
|
||||
fa: {
|
||||
title: '',
|
||||
description: ''
|
||||
},
|
||||
en: {
|
||||
title: '',
|
||||
description: ''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
error({status: 404, message: 'page not found'})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -0,0 +1,120 @@
|
||||
<template>
|
||||
<div>
|
||||
<CustomSubHeader>
|
||||
<CBreadcrumb class="border-0 mb-0">{{ title }}</CBreadcrumb>
|
||||
<CButton size="sm" color="success" :to="{name: 'admin-blog-categories-category',params:{category: 'new'}}" class="mr-auto">افزودن</CButton>
|
||||
</CustomSubHeader>
|
||||
|
||||
<CCard>
|
||||
<CCardHeader>
|
||||
<slot name="header">
|
||||
<i class="fal fa-bars"></i>
|
||||
<span>{{ list_title }}</span>
|
||||
</slot>
|
||||
</CCardHeader>
|
||||
<CCardBody>
|
||||
<el-table
|
||||
:data="blogCategories"
|
||||
style="width: 100%">
|
||||
<el-table-column
|
||||
type="index"
|
||||
label="#">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="locale.fa.title"
|
||||
label="عنوان فارسی"
|
||||
width="">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="locale.en.title"
|
||||
label="عنوان انگلیسی"
|
||||
width="">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
label="ویرایش"
|
||||
width="110"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<CButton color="danger" variant="outline" :key="scope.row._id + Math.random()" @click="remove(scope.row._id)">
|
||||
<i class="far fa-trash-alt"></i>
|
||||
</CButton>
|
||||
<CButton color="success" variant="outline" :key="scope.row._id" :to="{name: 'admin-blog-categories-category',params: {category: scope.row._id}}">
|
||||
<i class="far fa-eye"></i>
|
||||
</CButton>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
</el-table>
|
||||
</CCardBody>
|
||||
</CCard>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: 'لیست دسته بندی ها',
|
||||
list_title: 'لیست',
|
||||
blogCategories: null
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
remove(id) {
|
||||
this.$confirm('این مورد حذف شود؟', 'هشدار', {
|
||||
confirmButtonText: 'بله',
|
||||
cancelButtonText: 'لغو',
|
||||
type: 'warning'
|
||||
}).then(async () => {
|
||||
this.$axios.delete(`/api/admin/blogCategory/${id}`)
|
||||
.then(res => {
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: 'دسته بندی با موفقیت حذف شد'
|
||||
})
|
||||
this.blogCategories = this.blogCategories.filter(item => item._id !== id)
|
||||
})
|
||||
.catch(err => {
|
||||
if (err.response.status === 401) {
|
||||
return this.$message({
|
||||
type: 'error',
|
||||
message: 'لطفا دوباره وارد سیستم شوید.'
|
||||
})
|
||||
}
|
||||
if (err.response.status === 403) {
|
||||
return this.$message({
|
||||
type: 'error',
|
||||
message: err.response.data.message
|
||||
})
|
||||
} else console.log(err.response.data)
|
||||
})
|
||||
}).catch(() => {
|
||||
this.$message({
|
||||
type: 'warning',
|
||||
message: 'عملیات لغو شد'
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
head() {
|
||||
return {
|
||||
title: this.title
|
||||
}
|
||||
},
|
||||
layout: 'admin',
|
||||
async asyncData({$axios, error}) {
|
||||
try {
|
||||
const blogCategories = await $axios.get(`/api/public/blogCategories`)
|
||||
|
||||
return {
|
||||
blogCategories: blogCategories.data
|
||||
}
|
||||
} catch (e) {
|
||||
error({status: 500, message: 'there is a problem here'})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,276 @@
|
||||
<template>
|
||||
<div>
|
||||
<CustomSubHeader>
|
||||
<CBreadcrumb class="border-0 mb-0">{{ title }}</CBreadcrumb>
|
||||
<CButton size="sm" color="primary" class="mr-auto" :to="{name: 'admin-blog-posts'}">برگشت به صفحه قبل</CButton>
|
||||
<CButton size="sm" color="success" class="mr-1" @click="update">بروزرسانی</CButton>
|
||||
</CustomSubHeader>
|
||||
<CRow>
|
||||
<CCol lg="12">
|
||||
<CCard>
|
||||
<CCardBody>
|
||||
<CForm>
|
||||
<CRow>
|
||||
<CCol sm="12">
|
||||
<p>دسته بندی</p>
|
||||
<el-select v-model="blogPost.category" filterable :class="validation.category? 'err' : null">
|
||||
<el-option v-for="item in blogCategories" :label="item.locale.fa.title" :value="item._id" :key="item._id"/>
|
||||
</el-select>
|
||||
<p class="text-danger" v-if="validation.category">{{ validation.category.msg }}</p>
|
||||
<el-divider></el-divider>
|
||||
</CCol>
|
||||
<div>
|
||||
<el-checkbox v-model="blogPost.published" label="پست منتشر شود"/>
|
||||
</div>
|
||||
</CRow>
|
||||
</CForm>
|
||||
</CCardBody>
|
||||
</CCard>
|
||||
</CCol>
|
||||
<CCol lg="6">
|
||||
<CCard>
|
||||
<CCardBody>
|
||||
<h4>فارسی</h4>
|
||||
<el-divider></el-divider>
|
||||
<CInput
|
||||
:class="validation.fa_title ? 'err' : null"
|
||||
label="عنوان فارسی"
|
||||
:description="validation.fa_title ? validation.fa_title.msg : null"
|
||||
v-model="blogPost.locale.fa.title"
|
||||
/>
|
||||
<CTextarea
|
||||
:class="validation.fa_short_description ? 'err' : null"
|
||||
label="توضیح کوتاه فارسی"
|
||||
:description="validation.fa_short_description ? validation.fa_short_description.msg : null"
|
||||
v-model="blogPost.locale.fa.short_description"
|
||||
/>
|
||||
<CInput
|
||||
:class="validation.fa_last_section_image_title ? 'err' : null"
|
||||
label="عنوان روی تصویر بخش آخر"
|
||||
:description="validation.fa_last_section_image_title ? validation.fa_last_section_image_title.msg : null"
|
||||
v-model="blogPost.locale.fa.last_section_image_title"
|
||||
/>
|
||||
<CTextarea
|
||||
:class="validation.fa_last_section_image_description ? 'err' : null"
|
||||
label="توضیحات روی تصویر بخش آخر"
|
||||
:description="validation.fa_last_section_image_description ? validation.fa_last_section_image_description.msg : null"
|
||||
v-model="blogPost.locale.fa.last_section_image_description"
|
||||
/>
|
||||
<CInput
|
||||
:class="validation.fa_last_section_title ? 'err' : null"
|
||||
label="عنوان زیر تصویر بخش آخر"
|
||||
:description="validation.fa_last_section_title ? validation.fa_last_section_title.msg : null"
|
||||
v-model="blogPost.locale.fa.last_section_title"
|
||||
/>
|
||||
<CTextarea
|
||||
:class="validation.fa_last_section_description ? 'err' : null"
|
||||
label="توضیحات زیر تصویر بخش آخر"
|
||||
:description="validation.fa_last_section_description ? validation.fa_last_section_description.msg : null"
|
||||
v-model="blogPost.locale.fa.last_section_description"
|
||||
/>
|
||||
<client-only>
|
||||
<p>توضیحات فارسی</p>
|
||||
<ckeditor v-model="blogPost.locale.fa.description" :config="editorConfigFa"></ckeditor>
|
||||
<p class="text-danger" v-if="validation.fa_description">{{ validation.fa_description.msg }}</p>
|
||||
</client-only>
|
||||
</CCardBody>
|
||||
</CCard>
|
||||
</CCol>
|
||||
<CCol lg="6">
|
||||
<CCard>
|
||||
<CCardBody>
|
||||
<h4>انگلیسی</h4>
|
||||
<el-divider></el-divider>
|
||||
<CInput
|
||||
:class="validation.en_title ? 'err' : null"
|
||||
label="عنوان انگلیسی"
|
||||
:description="validation.en_title ? validation.en_title.msg : null"
|
||||
v-model="blogPost.locale.en.title"
|
||||
/>
|
||||
<CTextarea
|
||||
:class="validation.en_short_description ? 'err' : null"
|
||||
label="توضیح کوتاه انگلیسی"
|
||||
:description="validation.en_short_description ? validation.en_short_description.msg : null"
|
||||
v-model="blogPost.locale.en.short_description"
|
||||
/>
|
||||
<CInput
|
||||
:class="validation.en_last_section_image_title ? 'err' : null"
|
||||
label="عنوان روی تصویر بخش آخر"
|
||||
:description="validation.en_last_section_image_title ? validation.en_last_section_image_title.msg : null"
|
||||
v-model="blogPost.locale.en.last_section_image_title"
|
||||
/>
|
||||
<CTextarea
|
||||
:class="validation.en_last_section_image_description ? 'err' : null"
|
||||
label="توضیحات روی تصویر بخش آخر"
|
||||
:description="validation.en_last_section_image_description ? validation.en_last_section_image_description.msg : null"
|
||||
v-model="blogPost.locale.en.last_section_image_description"
|
||||
/>
|
||||
<CInput
|
||||
:class="validation.en_last_section_title ? 'err' : null"
|
||||
label="عنوان زیر تصویر بخش آخر"
|
||||
:description="validation.en_last_section_title ? validation.en_last_section_title.msg : null"
|
||||
v-model="blogPost.locale.en.last_section_title"
|
||||
/>
|
||||
<CTextarea
|
||||
:class="validation.en_last_section_description ? 'err' : null"
|
||||
label="توضیحات زیر تصویر بخش آخر"
|
||||
:description="validation.en_last_section_description ? validation.en_last_section_description.msg : null"
|
||||
v-model="blogPost.locale.en.last_section_description"
|
||||
/>
|
||||
<client-only>
|
||||
<p>توضیحات انگلیسی</p>
|
||||
<ckeditor v-model="blogPost.locale.en.description" :config="editorConfigEn"></ckeditor>
|
||||
<p class="text-danger" v-if="validation.en_description">{{ validation.en_description.msg }}</p>
|
||||
</client-only>
|
||||
</CCardBody>
|
||||
</CCard>
|
||||
</CCol>
|
||||
<CCol lg="6">
|
||||
<CCard>
|
||||
<CCardBody>
|
||||
<p>کاور</p>
|
||||
<img :src="blogPost.cover" alt="" style="width: 100%;max-width: 600px;">
|
||||
<input type="file" ref="cover" @change="preview">
|
||||
<p class="text-danger" v-if="validation.cover">{{ validation.cover.msg }}</p>
|
||||
</CCardBody>
|
||||
</CCard>
|
||||
</CCol>
|
||||
<CCol lg="6">
|
||||
<CCard>
|
||||
<CCardBody>
|
||||
<p>تصویر بخش آخر</p>
|
||||
<img :src="blogPost.last_section_image" alt="" style="width: 100%;max-width: 600px;">
|
||||
<input type="file" ref="last_section_image" @change="preview2">
|
||||
<p class="text-danger" v-if="validation.last_section_image">{{ validation.last_section_image.msg }}</p>
|
||||
</CCardBody>
|
||||
</CCard>
|
||||
</CCol>
|
||||
<CCol lg="12">
|
||||
<CCard>
|
||||
<CCardBody>
|
||||
<p>آپلود ویدیو</p>
|
||||
<input type="file" ref="video" placeholder="انتخاب فایل ویدیو"/>
|
||||
<p class="text-danger" v-if="validation.last_section_image">{{ validation.last_section_image.msg }}</p>
|
||||
</CCardBody>
|
||||
</CCard>
|
||||
</CCol>
|
||||
<CCol lg="12" v-if="blogPost.video">
|
||||
<CCard>
|
||||
<CCardBody>
|
||||
<video class="mt-3" width="100%" height="400" muted controls
|
||||
:src="blogPost.video"></video>
|
||||
</CCardBody>
|
||||
</CCard>
|
||||
</CCol>
|
||||
</CRow>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import axiosUploadProcess from "@/mixins/axiosUploadProcess"
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: 'مشاهده پست',
|
||||
blogPost: null,
|
||||
blogCategories: null,
|
||||
editorConfigFa: {
|
||||
language: 'en',
|
||||
extraPlugins: ['bidi', 'justify']
|
||||
},
|
||||
editorConfigEn: {
|
||||
language: 'en',
|
||||
extraPlugins: ['bidi', 'justify']
|
||||
},
|
||||
validation: {}
|
||||
}
|
||||
},
|
||||
mixins: [axiosUploadProcess],
|
||||
methods: {
|
||||
preview() {
|
||||
this.blogPost.cover = URL.createObjectURL(event.target.files[0])
|
||||
},
|
||||
preview2() {
|
||||
this.blogPost.last_section_image = URL.createObjectURL(event.target.files[0])
|
||||
},
|
||||
update() {
|
||||
this.validation = {}
|
||||
const data = new FormData()
|
||||
data.append('fa_title', this.blogPost?.locale?.fa?.title || '')
|
||||
data.append('en_title', this.blogPost?.locale?.en?.title || '')
|
||||
|
||||
data.append('fa_description', this.blogPost?.locale?.fa?.description || '')
|
||||
data.append('en_description', this.blogPost?.locale?.en?.description || '')
|
||||
|
||||
data.append('fa_short_description', this.blogPost?.locale?.fa?.short_description || '')
|
||||
data.append('en_short_description', this.blogPost?.locale?.en?.short_description || '')
|
||||
|
||||
data.append('fa_last_section_image_title', this.blogPost?.locale?.fa?.last_section_image_title || '')
|
||||
data.append('en_last_section_image_title', this.blogPost?.locale?.en?.last_section_image_title || '')
|
||||
|
||||
data.append('fa_last_section_image_description', this.blogPost?.locale?.fa?.last_section_image_description || '')
|
||||
data.append('en_last_section_image_description', this.blogPost?.locale?.en?.last_section_image_description || '')
|
||||
|
||||
data.append('fa_last_section_title', this.blogPost?.locale?.fa?.last_section_title || '')
|
||||
data.append('en_last_section_title', this.blogPost?.locale?.en?.last_section_title || '')
|
||||
|
||||
data.append('fa_last_section_description', this.blogPost?.locale?.fa?.last_section_description || '')
|
||||
data.append('en_last_section_description', this.blogPost?.locale?.en?.last_section_description || '')
|
||||
|
||||
data.append('category', this.blogPost.category)
|
||||
data.append('published', this.blogPost.published)
|
||||
console.log(this.$refs)
|
||||
|
||||
if (this.$refs.cover.files[0]) data.append('cover', this.$refs.cover.files[0])
|
||||
if (this.$refs.last_section_image.files[0]) data.append('last_section_image', this.$refs.last_section_image.files[0])
|
||||
if (this.$refs?.video?.files[0]) data.append('video', this.$refs?.video?.files[0])
|
||||
|
||||
this.$axios.put(`/api/admin/blogPost/${this.blogPost._id}`, data, this.axiosConfig)
|
||||
.then(response => {
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: 'اطلاعات بروزرسانی شد.'
|
||||
})
|
||||
this.$refs.cover.value = null
|
||||
this.$refs.last_section_image.value = null
|
||||
this.$nuxt.refresh()
|
||||
})
|
||||
.catch(err => {
|
||||
if (err.response.status === 401) {
|
||||
return this.$message({
|
||||
type: 'error',
|
||||
message: 'لطفا دوباره وارد سیستم شوید.'
|
||||
})
|
||||
}
|
||||
if (err.response.status === 422) {
|
||||
this.validation = err.response.data.validation
|
||||
this.$message({
|
||||
type: 'error',
|
||||
message: 'پارامتر هارو بررسی کنید'
|
||||
})
|
||||
} else console.log(err.response.data)
|
||||
})
|
||||
}
|
||||
},
|
||||
head() {
|
||||
return {
|
||||
title: this.title
|
||||
}
|
||||
},
|
||||
layout: 'admin',
|
||||
async asyncData({$axios, params, error}) {
|
||||
try {
|
||||
const blogCategories = await $axios.get(`/api/public/blogCategories`)
|
||||
const blogPost = await $axios.get(`/api/public/blogPost/${params.post}?noCategory=true`)
|
||||
return {
|
||||
blogCategories: blogCategories.data,
|
||||
blogPost: blogPost.data
|
||||
}
|
||||
} catch (e) {
|
||||
error({status: 404, message: 'page not found'})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -0,0 +1,141 @@
|
||||
<template>
|
||||
<div>
|
||||
<CustomSubHeader>
|
||||
<CBreadcrumb class="border-0 mb-0">{{ title }}</CBreadcrumb>
|
||||
<CButton size="sm" color="success" :to="{name: 'admin-blog-posts-new'}" class="mr-auto">افزودن</CButton>
|
||||
</CustomSubHeader>
|
||||
|
||||
<CCard>
|
||||
<CCardHeader>
|
||||
<slot name="header">
|
||||
<i class="fal fa-bars"></i>
|
||||
<span>{{ list_title }}</span>
|
||||
</slot>
|
||||
</CCardHeader>
|
||||
<CCardBody>
|
||||
<CRow>
|
||||
<CCol>
|
||||
<el-table
|
||||
:data="blogPosts"
|
||||
style="width: 100%">
|
||||
<el-table-column
|
||||
type="index"
|
||||
label="#">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
label="کاور"
|
||||
width="200">
|
||||
<template slot-scope="scope">
|
||||
<img :src="scope.row.thumb" alt="" style="width: 100%">
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="locale.fa.title"
|
||||
label="عنوان فارسی"
|
||||
width="">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="locale.en.title"
|
||||
label="عنوان انگلیسی"
|
||||
width="">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
label="وضعیت انتشار پست"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span class="text-success" v-if="scope.row.published">منتشر شده</span>
|
||||
<span class="text-danger" v-else>منتشر نشده</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
label="ویرایش"
|
||||
width="110"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<CButton color="danger" variant="outline" :key="scope.row._id + Math.random()" @click="remove(scope.row._id)">
|
||||
<i class="far fa-trash-alt"></i>
|
||||
</CButton>
|
||||
<CButton color="success" variant="outline" :key="scope.row._id" :to="{name: 'admin-blog-posts-post',params: {post: scope.row._id}}">
|
||||
<i class="far fa-eye"></i>
|
||||
</CButton>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
</el-table>
|
||||
</CCol>
|
||||
</CRow>
|
||||
</CCardBody>
|
||||
</CCard>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: 'لیست پست های رویدادها',
|
||||
list_title: 'لیست',
|
||||
blogPosts: null
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
remove(id) {
|
||||
this.$confirm('این مورد حذف شود؟', 'هشدار', {
|
||||
confirmButtonText: 'بله',
|
||||
cancelButtonText: 'لغو',
|
||||
type: 'warning'
|
||||
}).then(async () => {
|
||||
this.$axios.delete(`/api/admin/blogPost/${id}`)
|
||||
.then(res => {
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: 'پست با موفقیت حذف شد'
|
||||
})
|
||||
this.blogPosts = this.blogPosts.filter(item => item._id !== id)
|
||||
})
|
||||
.catch(err => {
|
||||
if (err.response.status === 401) {
|
||||
return this.$message({
|
||||
type: 'error',
|
||||
message: 'لطفا دوباره وارد سیستم شوید.'
|
||||
})
|
||||
}
|
||||
if (err.response.status === 403) {
|
||||
return this.$message({
|
||||
type: 'error',
|
||||
message: err.response.data.message
|
||||
})
|
||||
} else console.log(err.response.data)
|
||||
})
|
||||
}).catch(() => {
|
||||
this.$message({
|
||||
type: 'warning',
|
||||
message: 'عملیات لغو شد'
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
head() {
|
||||
return {
|
||||
title: this.title
|
||||
}
|
||||
},
|
||||
layout: 'admin',
|
||||
async asyncData({$axios, error}) {
|
||||
try {
|
||||
const blogPosts = await $axios.get(`/api/public/blogPosts?getAll=true`)
|
||||
|
||||
return {
|
||||
blogPosts: blogPosts.data
|
||||
}
|
||||
} catch (e) {
|
||||
error({status: 500, message: 'there is a problem here'})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,114 @@
|
||||
<template>
|
||||
<div>
|
||||
<CustomSubHeader>
|
||||
<CBreadcrumb class="border-0 mb-0">{{ title }}</CBreadcrumb>
|
||||
<CButton size="sm" color="primary" class="mr-auto" :to="{name: 'admin-blog-posts'}">برگشت به صفحه قبل</CButton>
|
||||
<CButton size="sm" color="success" class="mr-1" @click="post">افزودن</CButton>
|
||||
</CustomSubHeader>
|
||||
<CRow>
|
||||
<CCol lg="6">
|
||||
<CCard>
|
||||
<CCardBody>
|
||||
<CForm>
|
||||
<CRow>
|
||||
<CCol sm="12">
|
||||
|
||||
<CInput
|
||||
:class="validation.fa_title ? 'err' : null"
|
||||
label="عنوان فارسی"
|
||||
:description="validation.fa_title ? validation.fa_title.msg : null"
|
||||
v-model="fa_title"
|
||||
/>
|
||||
|
||||
<CInput
|
||||
:class="validation.en_title ? 'err' : null"
|
||||
label="عنوان انگلیسی"
|
||||
:description="validation.en_title ? validation.en_title.msg : null"
|
||||
v-model="en_title"
|
||||
/>
|
||||
|
||||
</CCol>
|
||||
|
||||
</CRow>
|
||||
</CForm>
|
||||
</CCardBody>
|
||||
</CCard>
|
||||
</CCol>
|
||||
<CCol lg="6">
|
||||
<CCard>
|
||||
<CCardBody>
|
||||
<p>کاور</p>
|
||||
<img :src="cover" alt="" style="width: 100%;max-width: 600px;">
|
||||
<input type="file" ref="cover" @change="preview">
|
||||
<p class="text-danger" v-if="validation.cover">{{ validation.cover.msg }}</p>
|
||||
</CCardBody>
|
||||
</CCard>
|
||||
</CCol>
|
||||
</CRow>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import axiosUploadProcess from "@/mixins/axiosUploadProcess"
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: 'افزودن پست',
|
||||
fa_title: '',
|
||||
en_title: '',
|
||||
cover: '',
|
||||
blogCategories: null,
|
||||
editorConfig: {
|
||||
language: 'en',
|
||||
extraPlugins: ['bidi', 'justify']
|
||||
},
|
||||
validation: {}
|
||||
}
|
||||
},
|
||||
mixins: [axiosUploadProcess],
|
||||
methods: {
|
||||
preview() {
|
||||
this.cover = URL.createObjectURL(event.target.files[0])
|
||||
},
|
||||
post() {
|
||||
this.validation = {}
|
||||
const data = new FormData()
|
||||
data.append('fa_title', this.fa_title)
|
||||
data.append('en_title', this.en_title)
|
||||
data.append('cover', this.$refs.cover.files[0])
|
||||
|
||||
this.$axios.post(`/api/admin/blogPost`, data, this.axiosConfig)
|
||||
.then(response => {
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: 'پست با موفقیت ایجاد شد.'
|
||||
})
|
||||
this.$router.push({name: 'admin-blog-posts-post', params: {post: response.data._id}})
|
||||
})
|
||||
.catch(err => {
|
||||
if (err.response.status === 401) {
|
||||
return this.$message({
|
||||
type: 'error',
|
||||
message: 'لطفا دوباره وارد سیستم شوید.'
|
||||
})
|
||||
}
|
||||
if (err.response.status === 422) {
|
||||
this.validation = err.response.data.validation
|
||||
return this.$message({
|
||||
type: 'warning',
|
||||
message: 'پارامتر ها رو بررسی و دوباره تلاش کنید'
|
||||
})
|
||||
} else console.log(err.response.data)
|
||||
})
|
||||
}
|
||||
},
|
||||
head() {
|
||||
return {
|
||||
title: this.title
|
||||
}
|
||||
},
|
||||
layout: 'admin'
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -0,0 +1,194 @@
|
||||
<template>
|
||||
<div>
|
||||
<CustomSubHeader>
|
||||
<CBreadcrumb class="border-0 mb-0">{{ title }}</CBreadcrumb>
|
||||
<CButton size="sm" color="primary" class="mr-auto" :to="{name: 'admin-catalogs'}">برگشت به صفحه قبل</CButton>
|
||||
<CButton v-if="$route.params.catalog === 'new'" size="sm" color="success" class="mr-1" @click="post">افزودن</CButton>
|
||||
<CButton v-else size="sm" color="success" class="mr-1" @click="update">بروزرسانی</CButton>
|
||||
</CustomSubHeader>
|
||||
<CRow>
|
||||
<CCol lg="6">
|
||||
<CCard>
|
||||
<CCardBody>
|
||||
<CInput
|
||||
:class="validation.fa_title ? 'err' : null"
|
||||
label="عنوان فارسی"
|
||||
:description="validation.fa_title ? validation.fa_title.msg : null"
|
||||
v-model="catalog.locale.fa.title"
|
||||
/>
|
||||
<CInput
|
||||
:class="validation.en_title ? 'err' : null"
|
||||
label="عنوان انگلیسی"
|
||||
:description="validation.en_title ? validation.en_title.msg : null"
|
||||
v-model="catalog.locale.en.title"
|
||||
/>
|
||||
<div>
|
||||
<el-checkbox v-model="catalog.showInFa" label="در نسخه فارسی سایت نمایش داده شود"/>
|
||||
</div>
|
||||
<div>
|
||||
<el-checkbox v-model="catalog.showInEn" label="در نسخه انگلیسی سایت نمایش داده شود"/>
|
||||
</div>
|
||||
<el-divider></el-divider>
|
||||
<p>فایل کاتلوگ:</p>
|
||||
<input type="file" ref="file">
|
||||
<p class="text-danger" v-if="validation.file">{{ validation.file.msg }}</p>
|
||||
</CCardBody>
|
||||
</CCard>
|
||||
</CCol>
|
||||
<CCol lg="6">
|
||||
<CCard>
|
||||
<CCardBody>
|
||||
<p>تصویر</p>
|
||||
<img :src="catalog.cover" alt="" style="width: 100%;max-width: 600px;">
|
||||
<input type="file" ref="cover" @change="preview">
|
||||
<p class="text-danger" v-if="validation.cover">{{ validation.cover.msg }}</p>
|
||||
</CCardBody>
|
||||
</CCard>
|
||||
</CCol>
|
||||
</CRow>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import axiosUploadProcess from "@/mixins/axiosUploadProcess"
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
catalog: null,
|
||||
validation: {}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
title() {
|
||||
return this.$route.params.image === 'new' ? 'افزودن کاتالوگ جدید' : 'ویرایش کاتالوگ'
|
||||
}
|
||||
},
|
||||
mixins: [axiosUploadProcess],
|
||||
methods: {
|
||||
preview() {
|
||||
this.catalog.cover = URL.createObjectURL(event.target.files[0])
|
||||
},
|
||||
post() {
|
||||
this.validation = {}
|
||||
if (!this.$refs.file.files[0]) {
|
||||
return this.$message({
|
||||
type: 'error',
|
||||
message: 'فایل کاتالوگ اجباری میباشد'
|
||||
})
|
||||
}
|
||||
if (!this.$refs.cover.files[0]) {
|
||||
return this.$message({
|
||||
type: 'error',
|
||||
message: 'کاور اجباری میباشد'
|
||||
})
|
||||
}
|
||||
const data = new FormData()
|
||||
data.append('fa_title', this.catalog.locale.fa.title)
|
||||
data.append('en_title', this.catalog.locale.en.title)
|
||||
data.append('showInFa', this.catalog.showInFa)
|
||||
data.append('showInEn', this.catalog.showInEn)
|
||||
data.append('file', this.$refs.file.files[0])
|
||||
data.append('cover', this.$refs.cover.files[0])
|
||||
|
||||
this.$axios.post(`/api/admin/catalog`, data, this.axiosConfig)
|
||||
.then(response => {
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: 'کاتالوگ با موفقیت افزوده شد'
|
||||
})
|
||||
this.$router.push({name: 'admin-catalogs'})
|
||||
})
|
||||
.catch(err => {
|
||||
if (err.response.status === 401) {
|
||||
return this.$message({
|
||||
type: 'error',
|
||||
message: 'لطفا دوباره وارد سیستم شوید.'
|
||||
})
|
||||
}
|
||||
if (err.response.status === 422) {
|
||||
this.validation = err.response.data.validation
|
||||
this.$message({
|
||||
type: 'error',
|
||||
message: 'پارامتر هارو بررسی کنید'
|
||||
})
|
||||
} else console.log(err.response.data)
|
||||
})
|
||||
},
|
||||
update() {
|
||||
this.validation = {}
|
||||
const data = new FormData()
|
||||
data.append('fa_title', this.catalog.locale.fa.title)
|
||||
data.append('en_title', this.catalog.locale.en.title)
|
||||
data.append('showInFa', this.catalog.showInFa)
|
||||
data.append('showInEn', this.catalog.showInEn)
|
||||
|
||||
if (this.$refs.file.files[0]) data.append('file', this.$refs.file.files[0])
|
||||
if (this.$refs.cover.files[0]) data.append('cover', this.$refs.cover.files[0])
|
||||
|
||||
this.$axios.put(`/api/admin/catalog/${this.catalog._id}`, data, this.axiosConfig)
|
||||
.then(response => {
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: 'اطلاعات بروزرسانی شد.'
|
||||
})
|
||||
this.$refs.cover.value = null
|
||||
this.$refs.file.value = null
|
||||
this.$nuxt.refresh()
|
||||
})
|
||||
.catch(err => {
|
||||
if (err.response.status === 401) {
|
||||
return this.$message({
|
||||
type: 'error',
|
||||
message: 'لطفا دوباره وارد سیستم شوید.'
|
||||
})
|
||||
}
|
||||
if (err.response.status === 422) {
|
||||
this.validation = err.response.data.validation
|
||||
this.$message({
|
||||
type: 'error',
|
||||
message: 'پارامتر هارو بررسی کنید'
|
||||
})
|
||||
} else console.log(err.response.data)
|
||||
})
|
||||
}
|
||||
},
|
||||
head() {
|
||||
return {
|
||||
title: this.title
|
||||
}
|
||||
},
|
||||
layout: 'admin',
|
||||
async asyncData({$axios, params, error}) {
|
||||
try {
|
||||
if (params.catalog !== 'new') {
|
||||
const catalog = await $axios.get(`/api/public/catalog/${params.catalog}`)
|
||||
return {
|
||||
catalog: catalog.data
|
||||
}
|
||||
} else {
|
||||
return {
|
||||
catalog: {
|
||||
locale: {
|
||||
fa: {
|
||||
title: ''
|
||||
},
|
||||
en: {
|
||||
title: ''
|
||||
}
|
||||
},
|
||||
file: '',
|
||||
cover: '',
|
||||
showInFa: true,
|
||||
showInEn: false
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
error({status: 404, message: 'page not found'})
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -0,0 +1,143 @@
|
||||
<template>
|
||||
<div>
|
||||
<CustomSubHeader>
|
||||
<CBreadcrumb class="border-0 mb-0">{{ title }}</CBreadcrumb>
|
||||
<CButton size="sm" color="success" :to="{name: 'admin-catalogs-catalog',params: {catalog: 'new'}}" class="mr-auto">افزودن</CButton>
|
||||
</CustomSubHeader>
|
||||
|
||||
<CCard>
|
||||
<CCardHeader>
|
||||
<slot name="header">
|
||||
<i class="fal fa-bars"></i>
|
||||
<span>{{ list_title }}</span>
|
||||
</slot>
|
||||
</CCardHeader>
|
||||
<CCardBody>
|
||||
<CRow>
|
||||
<CCol>
|
||||
<el-table
|
||||
:data="catalogs"
|
||||
style="width: 100%">
|
||||
<el-table-column
|
||||
type="index"
|
||||
label="#">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
label="عکس"
|
||||
width="200">
|
||||
<template slot-scope="scope">
|
||||
<img :src="scope.row.cover" alt="" style="width: 100%">
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="locale.fa.title"
|
||||
label="عنوان فارسی"
|
||||
width="">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="locale.en.title"
|
||||
label="عنوان انگلیسی"
|
||||
width="">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
label="حالت نمایش"
|
||||
width="">
|
||||
<template slot-scope="scope">
|
||||
<b class="text-success" v-if="scope.row.showInFa && scope.row.showInEn">فارسی و انگلیسی</b>
|
||||
<b class="text-danger" v-if="!scope.row.showInFa && !scope.row.showInEn">نمایش داده نشود</b>
|
||||
<b class="text-warning" v-if="!scope.row.showInEn && scope.row.showInFa">فارسی</b>
|
||||
<b class="text-warning" v-if="!scope.row.showInFa && scope.row.showInEn">انگلیسی</b>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
label="ویرایش"
|
||||
width="110"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<CButton color="danger" variant="outline" :key="scope.row._id + Math.random()" @click="remove(scope.row._id)">
|
||||
<i class="far fa-trash-alt"></i>
|
||||
</CButton>
|
||||
<CButton color="success" variant="outline" :key="scope.row._id" :to="{name: 'admin-catalogs-catalog',params: {catalog: scope.row._id}}">
|
||||
<i class="far fa-eye"></i>
|
||||
</CButton>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
</el-table>
|
||||
</CCol>
|
||||
</CRow>
|
||||
</CCardBody>
|
||||
</CCard>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: 'لیست کاتالوگ ها',
|
||||
list_title: 'لیست',
|
||||
catalogs: null
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
remove(id) {
|
||||
this.$confirm('این مورد حذف شود؟', 'هشدار', {
|
||||
confirmButtonText: 'بله',
|
||||
cancelButtonText: 'لغو',
|
||||
type: 'warning'
|
||||
}).then(async () => {
|
||||
this.$axios.delete(`/api/admin/catalog/${id}`)
|
||||
.then(res => {
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: 'کاتالوگ با موفقیت حذف شد'
|
||||
})
|
||||
this.catalogs = this.catalogs.filter(item => item._id !== id)
|
||||
})
|
||||
.catch(err => {
|
||||
if (err.response.status === 401) {
|
||||
return this.$message({
|
||||
type: 'error',
|
||||
message: 'لطفا دوباره وارد سیستم شوید.'
|
||||
})
|
||||
}
|
||||
if (err.response.status === 403) {
|
||||
return this.$message({
|
||||
type: 'error',
|
||||
message: err.response.data.message
|
||||
})
|
||||
} else console.log(err.response.data)
|
||||
})
|
||||
}).catch(() => {
|
||||
this.$message({
|
||||
type: 'warning',
|
||||
message: 'عملیات لغو شد'
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
head() {
|
||||
return {
|
||||
title: this.title
|
||||
}
|
||||
},
|
||||
layout: 'admin',
|
||||
async asyncData({$axios, error}) {
|
||||
try {
|
||||
const catalogs = await $axios.get(`/api/public/catalogs`)
|
||||
|
||||
return {
|
||||
catalogs: catalogs.data
|
||||
}
|
||||
} catch (e) {
|
||||
error({status: 500, message: 'there is a problem here'})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,206 @@
|
||||
<template>
|
||||
<div>
|
||||
<CustomSubHeader>
|
||||
<CBreadcrumb class="border-0 mb-0">{{ title }}</CBreadcrumb>
|
||||
<CButton size="sm" color="primary" class="mr-auto" :to="{name: 'admin-comments'}">برگشت به صفحه قبل</CButton>
|
||||
<CButton v-if="$route.params.comment === 'new'" size="sm" color="success" class="mr-1" @click="post">افزودن</CButton>
|
||||
<CButton v-else size="sm" color="success" class="mr-1" @click="update">بروزرسانی</CButton>
|
||||
</CustomSubHeader>
|
||||
<CRow>
|
||||
<CCol lg="6">
|
||||
<CCard>
|
||||
<CCardBody>
|
||||
<CForm>
|
||||
<h4 class="mt-5">فارسی</h4>
|
||||
<el-divider></el-divider>
|
||||
<CInput
|
||||
:class="validation.fa_name ? 'err' : null"
|
||||
label="نام فارسی"
|
||||
:description="validation.fa_name ? validation.fa_name.msg : null"
|
||||
v-model="comment.locale.fa.name"
|
||||
/>
|
||||
<CInput
|
||||
:class="validation.fa_position ? 'err' : null"
|
||||
label="سمت فارسی"
|
||||
:description="validation.fa_position ? validation.fa_position.msg : null"
|
||||
v-model="comment.locale.fa.position"
|
||||
/>
|
||||
<CTextarea
|
||||
:class="validation.fa_comment ? 'err' : null"
|
||||
label="کامنت فارسی"
|
||||
:description="validation.fa_comment ? validation.fa_comment.msg : null"
|
||||
v-model="comment.locale.fa.comment"
|
||||
/>
|
||||
|
||||
|
||||
<h4 class="mt-5">انگلیسی</h4>
|
||||
<el-divider></el-divider>
|
||||
<CInput
|
||||
:class="validation.en_name ? 'err' : null"
|
||||
label="نام انگلیسی"
|
||||
:description="validation.en_name ? validation.en_name.msg : null"
|
||||
v-model="comment.locale.en.name"
|
||||
/>
|
||||
<CInput
|
||||
:class="validation.en_position ? 'err' : null"
|
||||
label="سمت انگلیسی"
|
||||
:description="validation.en_position ? validation.en_position.msg : null"
|
||||
v-model="comment.locale.en.position"
|
||||
/>
|
||||
<CTextarea
|
||||
:class="validation.en_comment ? 'err' : null"
|
||||
label="کامنت انگلیسی"
|
||||
:description="validation.en_comment ? validation.en_comment.msg : null"
|
||||
v-model="comment.locale.en.comment"
|
||||
/>
|
||||
|
||||
</CForm>
|
||||
</CCardBody>
|
||||
</CCard>
|
||||
</CCol>
|
||||
<CCol lg="6">
|
||||
<CCard>
|
||||
<CCardBody>
|
||||
<h2>تصویر</h2>
|
||||
<el-divider></el-divider>
|
||||
<img :src="comment.image" alt="" style="width: 100%;max-width: 600px;">
|
||||
<input type="file" ref="image" @change="preview">
|
||||
<p class="text-danger" v-if="validation.image">{{ validation.image.msg }}</p>
|
||||
</CCardBody>
|
||||
</CCard>
|
||||
</CCol>
|
||||
</CRow>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
comment: null,
|
||||
validation: {}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
title() {
|
||||
return this.$route.params.comment === 'new' ? 'افزودن کامنت جدید' : 'مشاهده اطلاعات کامنت'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
preview() {
|
||||
this.comment.image = URL.createObjectURL(event.target.files[0])
|
||||
},
|
||||
post() {
|
||||
this.validation = {}
|
||||
|
||||
const data = new FormData()
|
||||
|
||||
data.append('fa_name', this.comment.locale.fa.name)
|
||||
data.append('en_name', this.comment.locale.en.name)
|
||||
|
||||
data.append('fa_position', this.comment.locale.fa.position)
|
||||
data.append('en_position', this.comment.locale.en.position)
|
||||
|
||||
data.append('fa_comment', this.comment.locale.fa.comment)
|
||||
data.append('en_comment', this.comment.locale.en.comment)
|
||||
|
||||
if (this.$refs.image.files[0]) data.append('image', this.$refs.image.files[0])
|
||||
|
||||
this.$axios.post(`/api/admin/comment`, data, this.axiosConfig)
|
||||
.then(response => {
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: 'کامنت با موفقیت ایجاد شد.'
|
||||
})
|
||||
this.$router.push({name: 'admin-comments'})
|
||||
})
|
||||
.catch(err => {
|
||||
if (err.response.status === 401) {
|
||||
return this.$message({
|
||||
type: 'error',
|
||||
message: 'لطفا دوباره وارد سیستم شوید.'
|
||||
})
|
||||
}
|
||||
if (err.response.status === 422) {
|
||||
this.validation = err.response.data.validation
|
||||
return this.$message({
|
||||
type: 'warning',
|
||||
message: 'پارامتر ها رو بررسی و دوباره تلاش کنید'
|
||||
})
|
||||
} else console.log(err.response.data)
|
||||
})
|
||||
},
|
||||
update() {
|
||||
this.validation = {}
|
||||
const data = new FormData()
|
||||
data.append('fa_name', this.comment.locale.fa.name)
|
||||
data.append('en_name', this.comment.locale.en.name)
|
||||
|
||||
data.append('fa_position', this.comment.locale.fa.position)
|
||||
data.append('en_position', this.comment.locale.en.position)
|
||||
|
||||
data.append('fa_comment', this.comment.locale.fa.comment)
|
||||
data.append('en_comment', this.comment.locale.en.comment)
|
||||
|
||||
if (this.$refs.image.files[0]) data.append('image', this.$refs.image.files[0])
|
||||
|
||||
this.$axios.put(`/api/admin/comment/${this.comment._id}`, data, this.axiosConfig)
|
||||
.then(response => {
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: 'اطلاعات بروزرسانی شد.'
|
||||
})
|
||||
this.$refs.image.value = null
|
||||
this.$nuxt.refresh()
|
||||
})
|
||||
.catch(err => {
|
||||
if (err.response.status === 401) {
|
||||
return this.$message({
|
||||
type: 'error',
|
||||
message: 'لطفا دوباره وارد سیستم شوید.'
|
||||
})
|
||||
}
|
||||
if (err.response.status === 422) this.validation = err.response.data.validation
|
||||
else console.log(err.response.data)
|
||||
})
|
||||
}
|
||||
},
|
||||
head() {
|
||||
return {
|
||||
title: this.title
|
||||
}
|
||||
},
|
||||
layout: 'admin',
|
||||
async asyncData({$axios, params, error}) {
|
||||
try {
|
||||
if (params.comment !== 'new') {
|
||||
const team = await $axios.get(`/api/admin/comment/${params.comment}`)
|
||||
return {
|
||||
comment: team.data
|
||||
}
|
||||
} else {
|
||||
return {
|
||||
comment: {
|
||||
locale: {
|
||||
fa: {
|
||||
name: '',
|
||||
position: '',
|
||||
comment: ''
|
||||
},
|
||||
en: {
|
||||
name: '',
|
||||
position: '',
|
||||
comment: ''
|
||||
}
|
||||
},
|
||||
image: ''
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
error({status: 404, message: 'page not found'})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
<template>
|
||||
<div>
|
||||
<CustomSubHeader>
|
||||
<CBreadcrumb class="border-0 mb-0">{{ title }}</CBreadcrumb>
|
||||
<CButton size="sm" color="success" :to="{name: 'admin-comments-comment',params:{comment: 'new'}}" class="mr-auto">افزودن</CButton>
|
||||
</CustomSubHeader>
|
||||
|
||||
<CCard>
|
||||
<CCardHeader>
|
||||
<slot name="header">
|
||||
<i class="fal fa-bars"></i>
|
||||
<span>{{ list_title }}</span>
|
||||
</slot>
|
||||
</CCardHeader>
|
||||
<CCardBody>
|
||||
<el-table
|
||||
:data="comments"
|
||||
style="width: 100%">
|
||||
<el-table-column
|
||||
type="index"
|
||||
label="#">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
label="عکس"
|
||||
width="200">
|
||||
<template slot-scope="scope">
|
||||
<img :src="scope.row.image || '/img/avatar.png'" alt="" style="width: 100%;">
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="locale.fa.name"
|
||||
label="نام"
|
||||
width="">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="locale.fa.position"
|
||||
label="سمت"
|
||||
width="">
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
label="ویرایش"
|
||||
width="110"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<CButton color="danger" variant="outline" :key="scope.row._id + Math.random()" @click="remove(scope.row._id)">
|
||||
<i class="far fa-trash-alt"></i>
|
||||
</CButton>
|
||||
<CButton color="success" variant="outline" :key="scope.row._id" :to="{name: 'admin-comments-comment',params: {comment: scope.row._id}}">
|
||||
<i class="far fa-eye"></i>
|
||||
</CButton>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
</el-table>
|
||||
</CCardBody>
|
||||
</CCard>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: 'لیست نظرات مشتریان',
|
||||
list_title: 'لیست',
|
||||
comments: null
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
remove(id) {
|
||||
this.$confirm('این مورد حذف شود؟', 'هشدار', {
|
||||
confirmButtonText: 'بله',
|
||||
cancelButtonText: 'لغو',
|
||||
type: 'warning'
|
||||
}).then(async () => {
|
||||
this.$axios.delete(`/api/admin/comment/${id}`)
|
||||
.then(res => {
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: 'مورد با موفقیت حذف شد'
|
||||
})
|
||||
this.comments = this.comments.filter(item => item._id !== id)
|
||||
})
|
||||
.catch(err => {
|
||||
if (err.response.status === 401) {
|
||||
return this.$message({
|
||||
type: 'error',
|
||||
message: 'لطفا دوباره وارد سیستم شوید.'
|
||||
})
|
||||
}
|
||||
if (err.response.status === 403) {
|
||||
return this.$message({
|
||||
type: 'error',
|
||||
message: err.response.data.message
|
||||
})
|
||||
} else console.log(err.response.data)
|
||||
})
|
||||
}).catch(() => {
|
||||
this.$message({
|
||||
type: 'warning',
|
||||
message: 'عملیات لغو شد'
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
head() {
|
||||
return {
|
||||
title: this.title
|
||||
}
|
||||
},
|
||||
layout: 'admin',
|
||||
async asyncData({$axios, error}) {
|
||||
try {
|
||||
const comments = await $axios.get(`/api/public/comments`)
|
||||
|
||||
return {
|
||||
comments: comments.data
|
||||
}
|
||||
} catch (e) {
|
||||
error({status: 500, message: 'there is a problem here'})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,96 @@
|
||||
<template>
|
||||
<div>
|
||||
<CustomSubHeader>
|
||||
<CBreadcrumb class="border-0 mb-0">{{ title }}</CBreadcrumb>
|
||||
<CButton size="sm" color="primary" class="mr-auto" :to="{name: 'admin-contact-us-messages'}">برگشت به صفحه قبل</CButton>
|
||||
</CustomSubHeader>
|
||||
<CCard>
|
||||
<CCardHeader>
|
||||
<slot name="header">
|
||||
<!-- <i class="fal fa-bars"></i>-->
|
||||
<!-- <span>{{ list_title }}</span>-->
|
||||
</slot>
|
||||
</CCardHeader>
|
||||
<CCardBody>
|
||||
<CRow>
|
||||
<CCol md="6">
|
||||
<CForm class="message">
|
||||
<CRow>
|
||||
<CCol sm="12">
|
||||
<CInput
|
||||
label="زبان سایت هنگام بازدید کاربر"
|
||||
:value="message.locale === 'fa' ? 'فارسی' : 'انگلیسی'"
|
||||
disabled
|
||||
/>
|
||||
<CInput
|
||||
label="نام"
|
||||
:value="message.name"
|
||||
disabled
|
||||
/>
|
||||
<CInput
|
||||
label="ایمیل"
|
||||
:value="message.email"
|
||||
disabled
|
||||
/>
|
||||
<CInput
|
||||
label="موضوع"
|
||||
:value="message.subject"
|
||||
disabled
|
||||
/>
|
||||
<CTextarea
|
||||
label="پیام"
|
||||
disabled=""
|
||||
:value="message.message"
|
||||
rows="10"
|
||||
/>
|
||||
</CCol>
|
||||
</CRow>
|
||||
</CForm>
|
||||
</CCol>
|
||||
</CRow>
|
||||
</CCardBody>
|
||||
</CCard>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import unreadMessagesCounter from "@/mixins/unreadMessagesCounter"
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: 'مشاهده پیام',
|
||||
message: null,
|
||||
validation: {}
|
||||
}
|
||||
},
|
||||
mixins: [unreadMessagesCounter],
|
||||
mounted() {
|
||||
this.checkMessages()
|
||||
},
|
||||
head() {
|
||||
return {
|
||||
title: this.title
|
||||
}
|
||||
},
|
||||
layout: 'admin',
|
||||
async asyncData({$axios, params, error}) {
|
||||
try {
|
||||
const message = await $axios.get(`/api/admin/contactUsMessages/${params.message}`)
|
||||
return {
|
||||
message: message.data
|
||||
}
|
||||
} catch (e) {
|
||||
error({status: 404, message: 'page not found'})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.message {
|
||||
input:disabled, textarea:disabled {
|
||||
color: #000 !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user