watchnodocks
This commit is contained in:
1 parent
2c6e15e480
commit
2d971c4af4
140 files changed
+908
-865
No files matched your search
@@ -4,4 +4,5 @@ from django.apps import AppConfig
|
||||
class AccountsConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'accounts'
|
||||
|
||||
verbose_name='Аккаунты Портала'
|
||||
@@ -19,6 +19,7 @@ class getuserAPIView(APIView):
|
||||
Результат: Выдает все данные о пользователе
|
||||
Если дать дополнительный параметр fullinfo = True, то будет выдаваться информация с комиссиями и ответсвенностью
|
||||
"""
|
||||
|
||||
resp = None
|
||||
fullinfo = request.query_params.get('fullinfo')
|
||||
queryset = DictEmployee.objects.get(login=request.query_params.get('userlogin'))
|
||||
|
||||
@@ -15,7 +15,7 @@ from ckeditor_uploader.fields import RichTextUploadingField
|
||||
|
||||
|
||||
# class CalendarEvents(models.Model):
|
||||
# """ Основные данные по событиям"""
|
||||
# """ Основные данные по событиям"""
|
||||
# name=models.CharField(max_length=300, verbose_name='Название события')
|
||||
# description = RichTextUploadingField(null=True, blank= True, verbose_name='Описание события')
|
||||
# content = RichTextUploadingField(null=True, blank= True, verbose_name='Полное описание события')
|
||||
|
||||
@@ -38,7 +38,12 @@ SWAGGER_SETTINGS = {
|
||||
}
|
||||
}
|
||||
}
|
||||
ALLOWED_HOSTS = ["*","portal-t",'portal9966']
|
||||
CSRF_TRUSTED_ORIGINS = [
|
||||
'http://localhost',
|
||||
'http://127.0.0.1',
|
||||
'http://yourdomain.com', # Add your production domain here
|
||||
]
|
||||
ALLOWED_HOSTS = ["*","portal-t",'portal9966','localhost','127.0.0.1']
|
||||
CHANNEL_LAYERS = {
|
||||
"default": {
|
||||
"BACKEND": "channels_redis.core.RedisChannelLayer",
|
||||
|
||||
@@ -20,6 +20,7 @@ class Safety_CommiteeInline(admin.StackedInline):
|
||||
fields = ('comm',)
|
||||
ordering = ("comm",)
|
||||
extra = 0
|
||||
|
||||
|
||||
# class SafetyFileAdmin(admin.ModelAdmin):
|
||||
|
||||
|
||||
@@ -7,15 +7,22 @@ import jwt
|
||||
import redis
|
||||
|
||||
class WatcherConsumer(AsyncWebsocketConsumer):
|
||||
async def connect(self):
|
||||
self.client = redis.Redis(host='127.0.0.1')
|
||||
async def connect(self):
|
||||
print("Sdsdsdds")
|
||||
|
||||
self.client = redis.Redis(host='redis')
|
||||
user = parse_qs(self.scope["query_string"].decode("utf8"))["token"][0]
|
||||
user = jwt.decode(user, options={"verify_signature": False})
|
||||
|
||||
|
||||
|
||||
|
||||
# self.client.sadd('online',json.dumps(user['user'],indent=4))
|
||||
self.room_group_name = "online"
|
||||
self.client.hset('online',str(self.channel_name), user['user']['login'] )
|
||||
# Join room group
|
||||
|
||||
|
||||
await self.channel_layer.group_add(
|
||||
self.room_group_name, self.channel_name
|
||||
)
|
||||
|
||||
@@ -4,26 +4,34 @@
|
||||
<v-container :fluid="true">
|
||||
<v-row>
|
||||
<v-text-field
|
||||
v-model="search"
|
||||
v-model="search"
|
||||
append-inner-icon="mdi-magnify"
|
||||
label="Найти тестирование по названию"
|
||||
variant="solo"
|
||||
|
||||
@click:append-inner="searchTest"
|
||||
clearable/>
|
||||
</v-row>
|
||||
|
||||
</v-container>
|
||||
|
||||
|
||||
<!-- Карточка где буду отрисовываться тесты в цикле -->
|
||||
<v-card v-for="cardValue in searchTest" :key="cardValue.id" class="my-2 border-sm">
|
||||
<v-row class="pa-2">
|
||||
<v-col cols="1">
|
||||
<v-img height="125" :src="cardValue.file" />
|
||||
|
||||
|
||||
</v-col>
|
||||
<v-col cols="auto" class="d-flex flex-grow-1">
|
||||
<div class="d-flex flex-column justify-center flex-grow-1">
|
||||
<div class="text-body-1 font-weight-medium mb-2">{{ cardValue.name }}</div>
|
||||
<div class="text-body-1 text-disabled mb-2">{{ cardValue.description }}</div>
|
||||
<div class="d-flex ga-4">
|
||||
|
||||
<slot name="results"></slot>
|
||||
|
||||
<div v-for="icon in activeTabIcon">
|
||||
<v-icon :color="icon.color" :icon="icon.icon" size="large" />
|
||||
<span class="ml-1">{{ momenter(cardValue[icon.field], icon.field) }}</span>
|
||||
|
||||
@@ -5,6 +5,8 @@ import { ref } from 'vue'
|
||||
export const usePortalFilterStore = defineStore('filter', () => {
|
||||
|
||||
const date_period = ref({ "startdate": new Date(new Date().getFullYear(), 0, 1),
|
||||
|
||||
|
||||
"enddate": new Date(),
|
||||
})
|
||||
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
<open-vacancies/>
|
||||
</v-window-item>
|
||||
<v-window-item class="gap h-100" value="contactInfo">
|
||||
<contact-info />
|
||||
<contact-info />aasddasd
|
||||
</v-window-item>
|
||||
</template>
|
||||
</template>aassssssrr
|
||||
</pattern-tabs>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in new issue
Block a user