-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
me first a pull request #7
Open
spokik
wants to merge
18
commits into
spokik-dev-events
Choose a base branch
from
master
base: spokik-dev-events
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
b0b8462
last work version from my job
spokik 1bd5e02
Пересобрал в виде расширения
spokik f20eb6c
Частично реализованны модули
spokik 8eed0a5
Перенес авто Мд в модуль
spokik 56fa94a
modules.js модули
spokik 943851b
Все разнесено по модулям
spokik d9b9d26
rename and correct mistakes in selectYear
spokik ac973a2
Исправлена табуляция на единую в 2 пробела
spokik b9c8756
Не добавляет кучу составов при мутации элемента
spokik 396c8c2
Merge branch 'spokik-dev-events' into spokik-as-extension
spokik d6be03a
asd
spokik 8af5fef
оп, Хлоп
spokik fc222e0
тык
spokik 41f14aa
Добавилась генирация конок выбора состава, в случае, если состав не о…
spokik 10dbe84
readme по бырому
spokik ee18327
йцу
spokik 27e0310
Восстанавливаю из рабочей версии
spokik cb6f254
Восстанавливаю из рабочей версии
spokik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
# Kad.arbitr | ||
|
||
Пользовательский скрипт, пока не имеющий названия. Создан для сканировщиков, загружающих на сайт необходимые дела. | ||
|
||
Функции | ||
|
||
МД по умолчанию: | ||
При добавлении иска на сайт, скрипт автоматически указывает тип документа. | ||
При добавлении иска на сайт, скрипт автоматически указывает тип документа. | ||
|
||
Горячие шаблоны: | ||
При отсудствии зарегестрированного документа в базе, сканеровщику необходимо создать собственную карточку. Скрипт позволяет как указать быстро сторону (истца, либо ответчика) Либо заполнить все поля ( Отзыв, заявление о праавоприемстве, ходатойство о приобщении дополнительных материалов дела и так далее. | ||
При отсудствии зарегестрированного документа в базе, сканеровщику необходимо создать собственную карточку. Скрипт позволяет как указать быстро сторону (истца, либо ответчика) Либо заполнить все поля ( Отзыв, заявление о праавоприемстве, ходатойство о приобщении дополнительных материалов дела и так далее. | ||
|
||
Проверка повторной загрузки: | ||
При попытке загрузить один и тот же фаил в разные дела, скрипт сообщит о потенциальной ошибке. | ||
При попытке загрузить один и тот же фаил в разные дела, скрипт сообщит о потенциальной ошибке. | ||
|
||
Статистика: | ||
скрипт собирает статистику о загруженных документах. Имеет возможность построть таблицу по составам и дням. | ||
|
||
скрипт собирает статистику о загруженных документах. Имеет возможность построть таблицу по составам и дням. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,16 @@ import { usersSettings } from './usersSettings.js' | |
|
||
// Добавляет кнопки пользовательского интерфейса | ||
function addBattons() { | ||
let footer = document.createElement("div") | ||
footer.className = "b-feedback" | ||
let xc = sostavPerDay(usersSettings.usersSS) | ||
footer.innerHTML = `${xc} <div id="activeStat" class="tampleteButton" style="height:23px">Статистика</div>`; | ||
let footer = document.createElement("div") | ||
footer.className = "b-feedback" | ||
let xc = sostavPerDay(usersSettings.usersSS) | ||
footer.innerHTML = `${xc} <div id="activeStat" class="tampleteButton" style="height:23px">Статистика</div>`; | ||
|
||
let classBlok = document.createElement("style") | ||
classBlok.innerHTML = "div.tampleteButton{height: 30px;width: 130px;-webkit-appearance: button;-webkit-writing-mode: horizontal-tb !important;color: buttontext;text-shadow: none;display: inline-block;text-align: center;align-items: flex-start;background-color: buttonface;box-sizing: border-box;margin: 0em;font: 400 13.3333px Arial;padding: 1px 6px;border-width: 2px;border-style: outset;border-color: buttonface;border-image: initial;}}"; | ||
let divBlok = document.createElement("div") | ||
divBlok.id = "UserTempale" | ||
divBlok.innerHTML = ` | ||
let classBlok = document.createElement("style") | ||
classBlok.innerHTML = "div.tampleteButton{height: 30px;width: 130px;-webkit-appearance: button;-webkit-writing-mode: horizontal-tb !important;color: buttontext;text-shadow: none;display: inline-block;text-align: center;align-items: flex-start;background-color: buttonface;box-sizing: border-box;margin: 0em;font: 400 13.3333px Arial;padding: 1px 6px;border-width: 2px;border-style: outset;border-color: buttonface;border-image: initial;}}"; | ||
let divBlok = document.createElement("div") | ||
divBlok.id = "UserTempale" | ||
divBlok.innerHTML = ` | ||
<div id="istec" class="tampleteButton" >Истец</div> | ||
<div id="otvetchik" class="tampleteButton">Ответчик</div> | ||
<div id="PoObshimPravilam" class="tampleteButton">По общим</div> | ||
|
@@ -22,34 +22,34 @@ function addBattons() { | |
<div id="otkazOtIska" class="tampleteButton">Отказ.И</div> | ||
<div id="processualnoePravopriemstvo" class="tampleteButton">Правоприемство</div>`; | ||
|
||
document.querySelector("#b-container > div.b-popup-wrapper.js-popup-wrapper.js-popup-wrapper--upload > div.b-popup.b-popup--blue.b-popup--upload.js-popup--upload > form > div.b-popup-button.js-upload-submit").before(classBlok) | ||
document.querySelector("#b-container > div.b-popup-wrapper.js-popup-wrapper.js-popup-wrapper--upload > div.b-popup.b-popup--blue.b-popup--upload.js-popup--upload > form > div.b-popup-button.js-upload-submit").before(divBlok) | ||
document.querySelector("#b-footer > div > div.b-copyright").after(footer) | ||
document.querySelector("#b-container > div.b-popup-wrapper.js-popup-wrapper.js-popup-wrapper--upload > div.b-popup.b-popup--blue.b-popup--upload.js-popup--upload > form > div.b-popup-button.js-upload-submit").before(classBlok) | ||
document.querySelector("#b-container > div.b-popup-wrapper.js-popup-wrapper.js-popup-wrapper--upload > div.b-popup.b-popup--blue.b-popup--upload.js-popup--upload > form > div.b-popup-button.js-upload-submit").before(divBlok) | ||
document.querySelector("#b-footer > div > div.b-copyright").after(footer) | ||
} | ||
|
||
//получает масив составов, вовзращает строку " состав: штук | состав: штук ..." | ||
function sostavPerDay(sostavs) { | ||
let today = new Date().getDate() | ||
let month = new Date().getMonth() + 1 | ||
let counter = {} | ||
for (let index = 0; index < sostavs.length; index++) { | ||
let starArray = JSON.parse(localStorage.getItem(`sostav${sostavs[index]}`)) | ||
for (let key in starArray) { | ||
if (starArray[key].month == month) { | ||
if (starArray[key].day == today) { | ||
if (counter[sostavs[index]] == undefined) { counter[sostavs[index]] = 0 } | ||
counter[sostavs[index]]++ | ||
} | ||
} | ||
let today = new Date().getDate() | ||
let month = new Date().getMonth() + 1 | ||
let counter = {} | ||
for (let index = 0; index < sostavs.length; index++) { | ||
let starArray = JSON.parse(localStorage.getItem(`sostav${sostavs[index]}`)) | ||
for (let key in starArray) { | ||
if (starArray[key].month == month) { | ||
if (starArray[key].day == today) { | ||
if (counter[sostavs[index]] == undefined) { counter[sostavs[index]] = 0 } | ||
counter[sostavs[index]]++ | ||
} | ||
} | ||
} | ||
//string stringify | ||
let stringReturn = '' | ||
for (let key in counter) { | ||
} | ||
//string stringify | ||
let stringReturn = '' | ||
for (let key in counter) { | ||
|
||
stringReturn = stringReturn + `${key} состав: ${counter[key]} штук | ` | ||
} | ||
return stringReturn | ||
stringReturn = stringReturn + `${key} состав: ${counter[key]} штук | ` | ||
} | ||
return stringReturn | ||
} | ||
|
||
export { addBattons } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. check please the spelling of the filename ;) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here should be instructions how to run your application in Readme