watchnodocks

This commit is contained in:
Nukeap committed 2025-02-09 17:28:35 +03:00
1 parent 86b11d3791
commit fda31b74ba
140 files changed
+908 -865

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@
## Пример использования
```vue
import Auth-form from '@/components/components\UI\Auth-form';
import Auth-form from '@/components/components/UI/Auth-form';
```
```vue
+4 -5
View File
@@ -2,16 +2,15 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `news` | `Object` | `{` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `news` | `Object` | `{` | нет комментария |
## Пример использования
```vue
import NewsCard from '@/components/components\UI\NewsCard';
import NewsCard from '@/components/components/UI/NewsCard';
```
```vue
+4 -5
View File
@@ -2,16 +2,15 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `tabs` | `Object` | `() => {` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `tabs` | `Object` | `() => {` | нет комментария |
## Пример использования
```vue
import PatternTabs from '@/components/components\UI\PatternTabs';
import PatternTabs from '@/components/components/UI/PatternTabs';
```
```vue
+4 -5
View File
@@ -2,16 +2,15 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `voteTime` | `Object` | `() => { return {` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `voteTime` | `Object` | `() => { return {` | нет комментария |
## Пример использования
```vue
import Timer from '@/components/components\UI\Timer';
import Timer from '@/components/components/UI/Timer';
```
```vue
@@ -4,16 +4,15 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `data` | `Object` | `() => {` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `data` | `Object` | `() => {` | нет комментария |
## Пример использования
```vue
import card-feedback from '@/components/components\UI\aboutportal\card-feedback';
import card-feedback from '@/components/components/UI/aboutportal/card-feedback';
```
```vue
@@ -2,16 +2,15 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `top` | `Object` | `() => {` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `top` | `Object` | `() => {` | нет комментария |
## Пример использования
```vue
import card-top-comment from '@/components/components\UI\aboutportal\card-top-comment';
import card-top-comment from '@/components/components/UI/aboutportal/card-top-comment';
```
```vue
@@ -2,16 +2,15 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `indicator` | `Object` | `{` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `indicator` | `Object` | `{` | нет комментария |
## Пример использования
```vue
import card-total from '@/components/components\UI\aboutportal\card-total';
import card-total from '@/components/components/UI/aboutportal/card-total';
```
```vue
@@ -4,16 +4,15 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `comment` | `Object` | `() => {` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `comment` | `Object` | `() => {` | нет комментария |
## Пример использования
```vue
import card-comment from '@/components/components\UI\aboutportal\card_top_comment\card-comment';
import card-comment from '@/components/components/UI/aboutportal/card_top_comment/card-comment';
```
```vue
@@ -2,16 +2,15 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `feedback` | `Object` | `() => {return {feed:[]` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `feedback` | `Object` | `() => {return {feed:[]` | нет комментария |
## Пример использования
```vue
import feedmodul from '@/components/components\UI\aboutportal\feedmodul';
import feedmodul from '@/components/components/UI/aboutportal/feedmodul';
```
```vue
@@ -2,68 +2,69 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `dataLineChart` | `Object` | `() => {` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `dataLineChart` | `Object` | `() => {` | нет комментария |
| `period` | `Object` | `() => {` | нет комментария |
| `filter` | `String` | `'d'` | нет комментария |
## Описание переменных
| Переменная | Значение | Описание |
|------------|----------|----------|
| `baseunic` | `unicperson(fullper.value.filter(e => new Date(e.visitdate) >moment(new Date(date)).subtract(between.value*2, 'd') && new Date(e.visitdate) <= moment(new Date(date)).subtract(between.value, 'd')))
let crrunic = unicperson(fullper.value.filter(e => new Date(e.visitdate) >moment(new Date(date)).subtract(between.value, 'd') && new Date(e.visitdate) <= new Date(date)))
let bothuser = new Set([...baseunic].filter(element => crrunic.has(element)))
if (date ==formatDash(filterStore.date_period.enddate)) {
editCRR(bothuser.size*100/baseunic.size)
}
return baseunic.size ==0?0:bothuser.size*100/baseunic.size
}
| `baseunic` | <pre>unicperson(fullper.value.filter(e<br>=> new Date(e.visitdate)<br>>moment(new<br>Date(date)).subtract(between.value*2,<br>'d') && new Date(e.visitdate)<br><= moment(new<br>Date(date)).subtract(between.value,<br>'d')))<br>
let crrunic =<br>unicperson(fullper.value.filter(e<br>=> new Date(e.visitdate)<br>>moment(new<br>Date(date)).subtract(between.value,<br>'d') && new Date(e.visitdate)<br><= new Date(date)))<br>
let bothuser = new<br>Set([...baseunic].filter(element<br>=> crrunic.has(element)))<br>
<br>
if (date<br>==formatDash(filterStore.date_period.enddate))<br>{<br>
<br>editCRR(bothuser.size*100/baseunic.size)<br>
}<br>
<br>
return baseunic.size<br>==0?0:bothuser.size*100/baseunic.size<br>
} <br>
const editCRR = (val) => {
emit('getCRR', val)
}
const unicperson = (arr) => {
let arrnew =[]
arr.forEach(e => arrnew.push(...e.user) )
return new Set(arrnew)
}
const editCRR = (val) =><br>{<br>
<br>
emit('getCRR', val)<br>
}<br>
<br>
const unicperson = (arr)<br>=> {<br>
<br>
let arrnew =[]<br>
arr.forEach(e =><br>arrnew.push(...e.user) )<br>
return new Set(arrnew)<br>
}<br>
const data=computed({get() {
return JSON.parse(JSON.stringify(dataf.value))
}
})
const linear=ref(null)
const data=computed({get()<br>{<br>
<br>
return<br>JSON.parse(JSON.stringify(dataf.value))<br>
}<br>
})<br>
const linear=ref(null)<br>
const options = {
const options = {<br>
plugins: {
datalabels: {
color: 'grey',
align: 'top',
display: 'auto'
},
legend: {
onHover: (event, chartElement) => {
event.native.target.style.cursor ='pointer'` | <pre>Расчет значения crr, и передача в<br>родительский компонент значения, на<br>последнюю дату в периоде для компонента<br>card-total<br>
plugins: { <br>
<br>
datalabels: {<br>
color: 'grey',<br>
align: 'top',<br>
display:<br>'auto'<br>
},<br>
legend: {<br>
onHover:<br>(event, chartElement) => {<br>
<br>event.native.target.style.cursor<br>='pointer'<br></pre> | <pre>Расчет значения crr, и передача в<br>родительский компонент значения, на<br>последнюю дату в периоде для<br>компонента card-total<br>
@constructor<br>
@param {object} date - по каждому<br>дню, в указанном периоде (пример -<br>2024-03-22)<br>
@description Для расчетного<br>периода с 04<br></pre> |
@param {object} date - по<br>каждому дню, в указанном периоде<br>(пример - 2024-03-22)<br>
@description Для расчетного<br>периода с 04<br></pre> |
## Пример использования
```vue
import line-chart from '@/components/components\UI\aboutportal\line-chart';
import line-chart from '@/components/components/UI/aboutportal/line-chart';
```
```vue
@@ -2,16 +2,15 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `title` | `String` | `''` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `title` | `String` | `''` | нет комментария |
## Пример использования
```vue
import pattern-card-feed from '@/components/components\UI\aboutportal\pattern-card-feed';
import pattern-card-feed from '@/components/components/UI/aboutportal/pattern-card-feed';
```
```vue
@@ -2,16 +2,16 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `title` | `String` | `''` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `title` | `String` | `''` | нет комментария |
| `ico` | `String` | `''` | нет комментария |
## Пример использования
```vue
import pattern-card from '@/components/components\UI\aboutportal\pattern-card';
import pattern-card from '@/components/components/UI/aboutportal/pattern-card';
```
```vue
@@ -4,16 +4,15 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `alldata` | `Object` | `() => {return {period: []` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `alldata` | `Object` | `() => {return {period: []` | нет комментария |
## Пример использования
```vue
import portal-traffic from '@/components/components\UI\aboutportal\portal-traffic';
import portal-traffic from '@/components/components/UI/aboutportal/portal-traffic';
```
```vue
@@ -2,16 +2,15 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `pages_count` | `Array` | `() => []` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `pages_count` | `Array` | `() => []` | нет комментария |
## Пример использования
```vue
import rating-page from '@/components/components\UI\aboutportal\rating-page';
import rating-page from '@/components/components/UI/aboutportal/rating-page';
```
```vue
@@ -2,16 +2,15 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `nStaff` | `Number` | `0` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `nStaff` | `Number` | `0` | нет комментария |
## Пример использования
```vue
import toolbar-filter from '@/components/components\UI\aboutportal\toolbar-filter';
import toolbar-filter from '@/components/components/UI/aboutportal/toolbar-filter';
```
```vue
@@ -2,16 +2,15 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `info` | `Object` | `() => {return {tooltip: ''` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `info` | `Object` | `() => {return {tooltip: ''` | нет комментария |
## Пример использования
```vue
import tooltip-ico from '@/components/components\UI\aboutportal\tooltip-ico';
import tooltip-ico from '@/components/components/UI/aboutportal/tooltip-ico';
```
```vue
@@ -2,16 +2,15 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `info` | `Array` | `() => []` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `info` | `Array` | `() => []` | нет комментария |
## Пример использования
```vue
import tooltip-user from '@/components/components\UI\aboutportal\tooltip-user';
import tooltip-user from '@/components/components/UI/aboutportal/tooltip-user';
```
```vue
@@ -2,16 +2,15 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `activusers` | `Object` | `{` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `activusers` | `Object` | `{` | нет комментария |
## Пример использования
```vue
import top-user from '@/components/components\UI\aboutportal\top-user';
import top-user from '@/components/components/UI/aboutportal/top-user';
```
```vue
+4 -5
View File
@@ -2,16 +2,15 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `datedefault` | `Date` | `''` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `datedefault` | `Date` | `''` | нет комментария |
## Пример использования
```vue
import date-select from '@/components/components\UI\date-select';
import date-select from '@/components/components/UI/date-select';
```
```vue
@@ -2,16 +2,15 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `rail` | `Boolean` | `false` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `rail` | `Boolean` | `false` | нет комментария |
## Пример использования
```vue
import page-counter from '@/components/components\UI\defaultportal\page-counter';
import page-counter from '@/components/components/UI/defaultportal/page-counter';
```
```vue
@@ -2,16 +2,15 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `files` | `Object` | `() => {` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `files` | `Object` | `() => {` | нет комментария |
## Пример использования
```vue
import uploading-file from '@/components/components\UI\defaultportal\uploading-file';
import uploading-file from '@/components/components/UI/defaultportal/uploading-file';
```
```vue
@@ -2,16 +2,15 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `rating` | `Object` | `() => {` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `rating` | `Object` | `() => {` | нет комментария |
## Пример использования
```vue
import feedstar-like from '@/components/components\UI\feedback\feedstar-like';
import feedstar-like from '@/components/components/UI/feedback/feedstar-like';
```
```vue
@@ -2,16 +2,15 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `rating` | `Object` | `() => {` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `rating` | `Object` | `() => {` | нет комментария |
## Пример использования
```vue
import statistik-like from '@/components/components\UI\feedback\statistik-like';
import statistik-like from '@/components/components/UI/feedback/statistik-like';
```
```vue
@@ -2,16 +2,15 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `author` | `Object` | `{` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `author` | `Object` | `{` | нет комментария |
## Пример использования
```vue
import icoUser from '@/components/components\UI\fiousercard\icoUser';
import icoUser from '@/components/components/UI/fiousercard/icoUser';
```
```vue
@@ -2,16 +2,16 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `opendialog` | `Boolean` | `false` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `opendialog` | `Boolean` | `false` | нет комментария |
| `author` | `Object` | `{` | нет комментария |
## Пример использования
```vue
import infoUserCard from '@/components/components\UI\fiousercard\infoUserCard';
import infoUserCard from '@/components/components/UI/fiousercard/infoUserCard';
```
```vue
@@ -2,16 +2,16 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `author` | `Object` | `{` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `author` | `Object` | `{` | нет комментария |
| `from_which` | `String` | `"dialog-search"` | нет комментария |
## Пример использования
```vue
import listUser from '@/components/components\UI\fiousercard\listUser';
import listUser from '@/components/components/UI/fiousercard/listUser';
```
```vue
@@ -5,7 +5,7 @@
## Пример использования
```vue
import onlineUsers from '@/components/components\UI\fiousercard\onlineUsers';
import onlineUsers from '@/components/components/UI/fiousercard/onlineUsers';
```
```vue
@@ -2,16 +2,15 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `author` | `Object` | `{` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `author` | `Object` | `{` | нет комментария |
## Пример использования
```vue
import vcardUser from '@/components/components\UI\fiousercard\vcardUser';
import vcardUser from '@/components/components/UI/fiousercard/vcardUser';
```
```vue
+1 -1
View File
@@ -3,7 +3,7 @@
Описание отсутствует.
```js
import * as index from '@/components/components\UI\index';
import * as index from '@/components/components/UI/index';
```
---
+4 -5
View File
@@ -2,16 +2,15 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `pretext` | `Object` | `() => {` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `pretext` | `Object` | `() => {` | нет комментария |
## Пример использования
```vue
import my-helper from '@/components/components\UI\my-helper';
import my-helper from '@/components/components/UI/my-helper';
```
```vue
+5 -5
View File
@@ -2,16 +2,16 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| `tooltip` | `Array` | `() => []` |
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `tooltip` | `Array` | `() => []` | нет комментария |
| `number` | `Number` | `0` | нет комментария |
## Пример использования
```vue
import tooltip-number from '@/components/components\UI\tooltip-number';
import tooltip-number from '@/components/components/UI/tooltip-number';
```
```vue
+3 -4
View File
@@ -2,15 +2,14 @@
## Описание пропсов
| Пропс | Тип | Значение по умолчанию |
|-------|-----|-----------------------|
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
## Пример использования
```vue
import tooltip-text from '@/components/components\UI\tooltip-text';
import tooltip-text from '@/components/components/UI/tooltip-text';
```
```vue