From d57a1e22587ba97cbf6783109af652c0a44d1ee7 Mon Sep 17 00:00:00 2001 From: iriska-gri <79623434+iriska-gri@users.noreply.github.com> Date: Mon, 20 Nov 2023 10:53:31 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=9E=20=D0=9E=D0=A2=D0=9F=D0=A3=D0=A1?= =?UTF-8?q?=D0=9A=D0=9E=D0=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/db.sqlite3 | Bin 397312 -> 401408 bytes .../src/components/UI/event-calendar.vue | 21 +- src/front/src/components/cardUsers.vue | 6 +- src/front/src/components/carousel-list.vue | 3 +- src/front/src/components/carousel-numbers.vue | 1 + src/front/src/components/digital-letna.vue | 204 ++++-------------- src/front/src/utils/universal_functions.js | 6 +- src/navigation/views.py | 4 +- 8 files changed, 69 insertions(+), 176 deletions(-) diff --git a/src/db.sqlite3 b/src/db.sqlite3 index 4367d630f66bbc51ecf9048d0dd5a8cc378fe1d3..4ed9924024546146153ed1f6b27849f53532c62b 100644 GIT binary patch delta 2353 zcmah~TTB#J7@j%1GqX4LP=gk!;$Ubb#a;I5vYQmyHi7~hLTwvrT4TART~;m%HjR6s z6dMQ>O&yUzL=2yXBLovwGX><=D&Xb z_kS}J8P1H%WPXyxmo+jBQ!^wMp|Zx2ea9?9K**`nl(JG)fp+7V$?9Wuvz_hh^EDn; z+I|78?XE45YYW)ZGn!c=D+>?VK2~R3XT(OGksb4kje3FCu*k;Do-kb(<-Eu2?^+s} z5YWoN4Ky&FnN3|Tr!GIFF5k-=jp(*EL&x7^%-7S-n}&?<8A|n=bv%C$y8OcD#n$V% zK)2uDbfBsJ@ZrW_XM0^o%l^i~rl2Df^155=I&C#wURRT3%|u_7w>i7^@9+gWU#ltE zUH!h(R@Hv6tF^83Er%uedgbBvfTPuN@XesVwZ8Vyj$lh=MW@5&a9ZpRi_I?D9X`9$ z=W~#E&MJ168GQ+T#ECse(X8hBlD(gji3E* zkUBZ961|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&eXQi5&RGzA9b9{B~0s9FcjR!C~_} zd>sEW!|Qa{lXs%szT%y@Y1KQ??Xx?qHb=SFX`&%fN-XKTaJ9P3_RysYyX~(SkJ*0+#5_A!yw@a4}&%fXEdmeuLdUE!jwEdYw zjjkbt?j&7d99^4_4^)yUao?3A5^eGsoEfvXPSRE$be*h_LlUiD#K#}C`dF(^dXbY? zOio7jr6DQP=o&II=b^N1_zPwU{)d_Hw!um?73tqBZ_Pv3T>If)lM`a+Iu|Z;_vx#z9-+uU-3nrMdJd# zL0?Ye(lSIvAL1!K@8S!5Dc>uoS^h5HFQx@FCYBBwpTa>EjUr^&qz9AO$r@(yC!6Mg z1cD71qk0beqy&xS@Oj#j6GFOkcwH|==ry1b;o2-37I_*_Qj`=+e8H(>vV(XiDPS*o zN_NNq@d&r~RNNe;g*_Z$_qT<4(q-D)rj)Ru9V|%}wcCC3iiSGfXCz}8jkPO&y1I*P zPd0Y32$^l{8p>tIF6E+l*CDYvw{k12Imjq7Ue$)F9#s^HoDAkVt^GJnID N_;QIXBl-c<`ajF1+V=ne diff --git a/src/front/src/components/UI/event-calendar.vue b/src/front/src/components/UI/event-calendar.vue index 6e855fc2b..f0c9f054e 100644 --- a/src/front/src/components/UI/event-calendar.vue +++ b/src/front/src/components/UI/event-calendar.vue @@ -39,7 +39,8 @@ @@ -117,13 +118,7 @@ export default { setup() { const events = ref([ - // { - // start: '2023-11-15', - // end: '2023-11-21', - // title: 'Need to go shopping', - // content: 'shopping_cart', - // class: 'leisure' - // }, + ]) function f_generalvacation() { axiosApiInstance.get('api/general_vacation/generalvacation/') @@ -149,7 +144,8 @@ export default { }) } - + + onMounted(() => { f_generalvacation() }) @@ -158,6 +154,8 @@ export default { const selectedDate = ref(null) + + return { events, selectedDate, f_generalvacation } @@ -234,6 +232,11 @@ border-top-right-radius: 3px; background: #c2e9d78c; border-radius: 30px; color: #333; + +} + +.vuecal__cell-content { + cursor: pointer; } .vuecal__body { diff --git a/src/front/src/components/cardUsers.vue b/src/front/src/components/cardUsers.vue index 16803f284..ad455bafe 100644 --- a/src/front/src/components/cardUsers.vue +++ b/src/front/src/components/cardUsers.vue @@ -83,13 +83,13 @@ - + diff --git a/src/front/src/components/carousel-list.vue b/src/front/src/components/carousel-list.vue index 9ccc726bb..4d3226a4f 100644 --- a/src/front/src/components/carousel-list.vue +++ b/src/front/src/components/carousel-list.vue @@ -22,8 +22,7 @@ cover eager > - - + - + - - - - + + + - - - + + + + + + + - - + - + + + + Данные не загружены + + + + + + + - - - - - - - - Данные не загружены -
@@ -115,96 +113,11 @@ :namepos=namepos @searchClose="dialogDetailRound=!dialogDetailRound" /> - - +
@@ -215,11 +128,11 @@ class="px-3" > \ No newline at end of file diff --git a/src/front/src/utils/universal_functions.js b/src/front/src/utils/universal_functions.js index 049a0f710..37e72e828 100644 --- a/src/front/src/utils/universal_functions.js +++ b/src/front/src/utils/universal_functions.js @@ -25,9 +25,11 @@ export function getfromserver(path, reactive){ } export function bgimage(filecheck){ - return new URL(`@assets/bg-for-number-carousel.png`, import.meta.url).href + const h = new URL(`@assets/bg-for-number-carousel.png`, import.meta.url).href + console.log(h, 'ffffffffffffffffffffffffffffff'); + return h } - +// bg-for-number-carousel.png export function checkremote(filecheck){ diff --git a/src/navigation/views.py b/src/navigation/views.py index b77bc66e4..f448bca4f 100644 --- a/src/navigation/views.py +++ b/src/navigation/views.py @@ -107,7 +107,7 @@ class CarouselsAPIView(ListAPIView): allbirthday = { "title":'Дни рождения', - "text": "в этом месяце:\n"+"\n".join([f"{x.birthdate.strftime('%d')} - {x.fio}" for x in manbrd]), + "text": "\n".join([f"{x.birthdate.strftime('%d')} - {x.fio}" for x in manbrd]), "link": "/media/"+str(brdimage[0].img), "published": 'true', @@ -124,7 +124,7 @@ class CarouselsAPIView(ListAPIView): birthday.append({ "title":'Поздравляем!', - "text": f"{k.fio} {brdtext[0].text}", + "text": f"{k.fio}!"+"\n"+ f"{brdtext[0].text}", "link": "/media/"+str(brdimage[0].img), "published": 'true', "sender": "/media/default/dr.png",