瀏覽代碼

Merge branch 'hotfix/V8-6406-page-school--comparatif--remettr'

Olivier Massot 1 年之前
父節點
當前提交
a0c9b5ebe3
共有 6 個文件被更改,包括 238 次插入252 次删除
  1. 1 1
      .gitlab-ci.yml
  2. 1 2
      components/Common/CookiesConsent.vue
  3. 8 0
      components/Common/Table/Comparatif.vue
  4. 1 0
      components/Logiciels/School/Comparatif.vue
  5. 1 1
      package.json
  6. 226 248
      yarn.lock

+ 1 - 1
.gitlab-ci.yml

@@ -8,7 +8,7 @@ cache:
 
 before_script:
   - corepack enable
-  - yarn set version berry
+  - yarn set version berry@4.3.1
   - yarn install --network-timeout 10000
   - HOST=ci yarn prepare
 

+ 1 - 2
components/Common/CookiesConsent.vue

@@ -210,9 +210,9 @@
 <script setup lang="ts">
 import { onMounted, type Ref, ref } from 'vue'
 import { useCookies } from 'vue3-cookies'
+import { useDisplay } from 'vuetify'
 import { COOKIE_CONSENT_CHOICE } from '~/types/enum/enums'
 import type { CookiesPreferences } from '~/types/interface'
-import {useDisplay} from "vuetify";
 
 const layoutStore = useLayoutStore()
 const { mdAndDown } = useDisplay()
@@ -458,7 +458,6 @@ onMounted(() => {
   border-radius: 15px;
   padding: 20px;
 
-
   @media (max-width: 600px) {
     max-height: 650px;
     overflow-y: scroll;

+ 8 - 0
components/Common/Table/Comparatif.vue

@@ -8,6 +8,7 @@
 
             <th>
               <p class="standard">Standard</p>
+              <p v-if="showFrom" class="from">À partir de</p>
               <p class="price">
                 {{ standardPrice }} <span class="ttc">ttc</span>
               </p>
@@ -16,6 +17,7 @@
 
             <th class="premium-column">
               <p class="standard">Premium</p>
+              <p v-if="showFrom" class="from">À partir de</p>
               <p class="price">
                 {{ premiumPrice }} <span class="ttc">ttc</span>
               </p>
@@ -204,6 +206,11 @@ const props = defineProps({
     type: Array as PropType<Array<ComparisonItem>>,
     required: true,
   },
+  showFrom: {
+    type: Boolean,
+    required: false,
+    default: false,
+  },
 })
 
 const height = computed(() => 150 + props.items.length * 48)
@@ -294,6 +301,7 @@ td:first-child {
   margin-bottom: 1rem;
 }
 
+.from,
 .ttc {
   font-weight: 300;
   font-size: 12px;

+ 1 - 0
components/Logiciels/School/Comparatif.vue

@@ -12,6 +12,7 @@
           standard-price="34,90€"
           premium-price="49€"
           :items="comparisonItems"
+          :show-from="true"
         />
 
         <div class="asterisk">

+ 1 - 1
package.json

@@ -81,5 +81,5 @@
     "sass-loader": "^14.1.0",
     "typescript": "^5.3.3"
   },
-  "packageManager": "yarn@4.1.1"
+  "packageManager": "yarn@4.3.1"
 }

文件差異過大導致無法顯示
+ 226 - 248
yarn.lock


部分文件因文件數量過多而無法顯示