1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-08-10 22:41:43 +02:00

Борьба с 1Script

This commit is contained in:
Anton Titovets
2024-03-05 17:24:54 +03:00
parent c7dfb496db
commit e8657779aa
17 changed files with 90 additions and 16 deletions

21
OInt/.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,21 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Отладка 1Script",
"type": "oscript",
"request": "launch",
"program": "${file}",
"args": [],
"cwd": "${workspaceRoot}",
"env": {},
"runtimeExecutable": null,
"runtimeArgs": [],
"debugPort": 2801
}
]
}

View File

@@ -23,7 +23,7 @@
// https://github.com/Bayselonarrend/OpenIntegrations
//Раскомментировать, если выполняется OneScript
#Использовать ".."
#Использовать "../../tools"
#Область ПрограммныйИнтерфейс

View File

@@ -23,7 +23,7 @@
// https://github.com/Bayselonarrend/OpenIntegrations
//Раскомментировать, если выполняется OneScript
#Использовать ".."
#Использовать "../../tools"
#Область ПрограммныйИнтерфейс

View File

@@ -23,7 +23,7 @@
// https://github.com/Bayselonarrend/OpenIntegrations
//Раскомментировать, если выполняется OneScript
#Использовать ".."
#Использовать "../../tools"
#Область ПрограммныйИнтерфейс

View File

@@ -25,7 +25,7 @@
// BSLLS:Typo-off
//Раскомментировать, если выполняется OneScript
#Использовать ".."
#Использовать "../../tools"
#Область ПрограммныйИнтерфейс

View File

@@ -27,7 +27,7 @@
// BSLLS:Typo-off
//Раскомментировать, если выполняется OneScript
#Использовать ".."
#Использовать "../../tools"
#Область ПрограммныйИнтерфейс

View File

@@ -27,7 +27,7 @@
// BSLLS:NumberOfOptionalParams-off
//Раскомментировать, если выполняется OneScript
#Использовать ".."
#Использовать "../../tools"
#Область ПрограммныйИнтерфейс

View File

@@ -23,7 +23,7 @@
// https://github.com/Bayselonarrend/OpenIntegrations
//Раскомментировать, если выполняется OneScript
#Использовать ".."
#Использовать "../../tools"
#Область ПрограммныйИнтерфейс

View File

@@ -23,7 +23,7 @@
// https://github.com/Bayselonarrend/OpenIntegrations
//Раскомментировать, если выполняется OneScript
#Использовать ".."
#Использовать "../../tools"
#Область ПрограммныйИнтерфейс

View File

@@ -23,7 +23,7 @@
// https://github.com/Bayselonarrend/OpenIntegrations
//Раскомментировать, если выполняется OneScript
#Использовать ".."
#Использовать "../../tools"
#Область ПрограммныйИнтерфейс

15
OInt/lib.config Normal file
View File

@@ -0,0 +1,15 @@
<package-def>
<module name="OPI_Telegram" file="core/Modules/OPI_Telegram.os"/>
<module name="OPI_GoogleCalendar" file="core/Modules/OPI_GoogleCalendar.os"/>
<module name="OPI_GoogleWorkspace" file="core/Modules/OPI_GoogleWorkspace.os"/>
<module name="OPI_Notion" file="core/Modules/OPI_Notion.os"/>
<module name="OPI_Twitter" file="core/Modules/OPI_Twitter.os"/>
<module name="OPI_Viber" file="core/Modules/OPI_Viber.os"/>
<module name="OPI_VK" file="core/Modules/OPI_VK.os"/>
<module name="OPI_YandexDisk" file="core/Modules/OPI_YandexDisk.os"/>
<module name="OPI_YandexID" file="core/Modules/OPI_YandexID.os"/>
<module name="OPI_Инструменты" file="tools/Modules/internal/Modules/OPI_Инструменты.os"/>
<module name="OPI_Криптография" file="tools/Modules/internal/Modules/OPI_Криптография.os"/>
<module name="OPI_ПолучениеДанныхТестов" file="tools/Modules/OPI_ПолучениеДанныхТестов.os"/>
<module name="OPI_Тесты" file="tests/OPI_Тесты.os"/>
</package-def>

BIN
OInt/oint-1.0.0.ospx Normal file

Binary file not shown.

11
OInt/packagedef Normal file
View File

@@ -0,0 +1,11 @@
Описание.Имя("oint")
.Версия("1.0.0")
.Автор("bayselonarrend")
.АдресАвтора("bayselonarrend@gmail.com")
.Описание("Открытый пакет интеграций с популярными API")
.ВерсияСреды("1.0.7")
.ВключитьФайл("core")
.ВключитьФайл("tools")
.ВключитьФайл("tests")
.ВключитьФайл("lib.config")
.ЗависитОт("asserts", "1.3.0")

View File

@@ -27,7 +27,8 @@
// BSLLS:Typo-off
//Раскомментировать, если выполняется OneScript
#Использовать ".."
#Использовать "../tools"
#Использовать "../core"
#Использовать asserts
#Область СлужебныйПрограммныйИнтерфейс
@@ -468,7 +469,10 @@
IDКанала = OPI_ПолучениеДанныхТестов.ПолучитьПараметр("Телеграм_Канал");
Заголовок = "Ссылка " + Строка(ТекущаяДата);
Истечение = ТекущаяДата + Час;
UnixИстечение = Число(OPI_Инструменты.UNIXTime(Истечение));
UnixИстечение = OPI_Инструменты.UNIXTime(Истечение);
UnixИстечение = СтрЗаменить(UnixИстечение, ",", "");
UnixИстечение = Лев(UnixИстечение, 10);
UnixИстечение = Число(UnixИстечение);
Результат = OPI_Telegram.СоздатьСсылкуПриглашение(Токен, IDКанала, Заголовок, Истечение, 200);

View File

@@ -23,7 +23,7 @@
// https://github.com/Bayselonarrend/OpenIntegrations
//Раскомментировать, если выполняется OneScript
#Использовать ".."
#Использовать "./internal"
#Использовать asserts
// BSLLS:Typo-off
@@ -141,7 +141,7 @@
КонецФункции
Функция ПутьКФайлуДанных()
Возврат "G:\Мой диск\data.json"; // BSLLS:UsingHardcodePath-off
Возврат "D:\GD\Мой диск\data.json"; // BSLLS:UsingHardcodePath-off
КонецФункции
Функция ПолучитьМассивРазделовТестирования()

View File

@@ -25,7 +25,6 @@
// BSLLS:LatinAndCyrillicSymbolInWord-off
//Раскомментировать, если выполняется OneScript
#Использовать ".."
#Область СлужебныйПрограммныйИнтерфейс
@@ -108,7 +107,7 @@
КонецФункции
Функция UNIXTime(Знач Дата) Экспорт
Возврат Формат(Дата - Дата(1970, 1, 1, 1, 0, 0), "ЧГ=0");
Возврат Формат(Дата - Дата(1970, 1, 1, 1, 0, 0), "ЧЦ=10; ЧДЦ=0; ЧГ=0");
КонецФункции
Процедура ЗаменитьСпецСимволы(Текст) Экспорт

View File

@@ -1,3 +1,27 @@
// MIT License
// Copyright (c) 2023 Anton Tsitavets
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
// https://github.com/Bayselonarrend/OpenIntegrations
#Область СлужебныйПрограммныйИнтерфейс
#Область БСП