1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-25 02:42:28 +02:00

Форматирование примеров кода в доках

This commit is contained in:
Anton 2024-06-09 02:26:57 +03:00
parent 9b03afc3fd
commit 96b8f7f71e
513 changed files with 1817 additions and 2306 deletions

View File

@ -450,7 +450,7 @@
Функция ПолучитьВызов1С(Модуль, Метод)
ВозвращаемыйТекст = "";
Результат = "";
ИмяКаталога = СтрЗаменить(Модуль, "OPI_", "");
ИмяФайла = Метод + ".txt";
@ -461,11 +461,28 @@
Если ФайлПримера.Существует() Тогда
ТекстПримера = Новый ТекстовыйДокумент();
ТекстПримера.Прочитать(ПутьПримера);
ВозвращаемыйТекст = ТекстПримера.ПолучитьТекст();
ВозвращаемыйТекст = СтрЗаменить(" " + ВозвращаемыйТекст, Символы.ПС, Символы.ПС + " ");
Результат = "";
Для Н = 1 По ТекстПримера.КоличествоСтрок() Цикл
ТекущаяСтрока = СокрЛП(ТекстПримера.ПолучитьСтроку(Н));
Результат = Результат + " " + ТекущаяСтрока + Символы.ПС;
КонецЦикла;
Если ЗначениеЗаполнено(Результат) Тогда
Результат = Лев(Результат, СтрДлина(Результат) - 1);
Пока СтрНайти(Результат, Символы.ПС + Символы.ПС) <> 0 Цикл
Результат = СтрЗаменить(Результат, Символы.ПС + Символы.ПС, Символы.ПС);
КонецЦикла;
КонецЕсли;
КонецЕсли;
Возврат ВозвращаемыйТекст;
Возврат Результат;
КонецФункции
@ -595,7 +612,21 @@
ДокументЛога = Новый ТекстовыйДокумент();
ДокументЛога.Прочитать(ПутьЛога);
Результат = ДокументЛога.ПолучитьТекст();
Результат = "";
Для Н = 1 По ДокументЛога.КоличествоСтрок() Цикл
ТекущаяСтрока = ДокументЛога.ПолучитьСтроку(Н);
Если ЗначениеЗаполнено(ТекущаяСтрока) Тогда
Результат = Результат + ТекущаяСтрока + Символы.ПС;
КонецЕсли;
КонецЦикла;
Если ЗначениеЗаполнено(Результат) Тогда
Результат = Лев(Результат, СтрДлина(Результат) - 1);
КонецЕсли;
Возврат СокрЛП(Результат);

View File

@ -31,7 +31,6 @@ sidebar_position: 2
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -31,7 +31,6 @@ sidebar_position: 4
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -33,7 +33,6 @@ sidebar_position: 3
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -30,7 +30,6 @@ sidebar_position: 1
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -37,7 +37,6 @@ sidebar_position: 3
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -32,7 +32,6 @@ sidebar_position: 4
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -28,7 +28,6 @@ sidebar_position: 1
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -29,7 +29,6 @@ sidebar_position: 2
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -40,7 +40,6 @@ sidebar_position: 1
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -31,7 +31,6 @@ sidebar_position: 2
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -37,7 +37,6 @@ sidebar_position: 3
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -25,7 +25,6 @@ sidebar_position: 2
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -24,7 +24,6 @@ sidebar_position: 1
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -30,7 +30,6 @@ sidebar_position: 1
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -24,7 +24,6 @@ sidebar_position: 5
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -24,7 +24,6 @@ sidebar_position: 6
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -24,7 +24,6 @@ sidebar_position: 7
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -24,7 +24,6 @@ sidebar_position: 8
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -24,7 +24,6 @@ sidebar_position: 10
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -26,7 +26,6 @@ sidebar_position: 4
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -24,7 +24,6 @@ sidebar_position: 9
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -24,7 +24,6 @@ sidebar_position: 3
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -33,7 +33,6 @@ sidebar_position: 2
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -22,7 +22,6 @@ sidebar_position: 4
Result = OPI_Dropbox.GetAccountInformation(Token);
```
```sh title="CLI command example"

View File

@ -20,7 +20,6 @@ sidebar_position: 1
AppKey = "oynqxds...";
Result = OPI_Dropbox.GetAuthorizationLink(AppKey);
```
```sh title="CLI command example"

View File

@ -21,7 +21,6 @@ sidebar_position: 5
Result = OPI_Dropbox.GetSpaceUsageData(Token);
```
```sh title="CLI command example"

View File

@ -25,7 +25,6 @@ sidebar_position: 2
Result = OPI_Dropbox.GetToken(AppKey, AppSecret, Code);
```
```sh title="CLI command example"

View File

@ -25,7 +25,6 @@ sidebar_position: 3
Result = OPI_Dropbox.RefreshToken(AppKey, AppSecret, RefreshToken);
```
```sh title="CLI command example"

View File

@ -25,7 +25,6 @@ sidebar_position: 8
Result = OPI_Dropbox.CopyObject(Token, Original, Copy);
```
```sh title="CLI command example"

View File

@ -23,7 +23,6 @@ sidebar_position: 10
Result = OPI_Dropbox.CreateFolder(Token, Path);
```
```sh title="CLI command example"

View File

@ -24,7 +24,6 @@ sidebar_position: 7
Result = OPI_Dropbox.DeleteObject(Token, Path);
```
```sh title="CLI command example"

View File

@ -23,7 +23,6 @@ sidebar_position: 11
Result = OPI_Dropbox.DownloadFile(Token, Path);
```
```sh title="CLI command example"

View File

@ -23,7 +23,6 @@ sidebar_position: 12
Result = OPI_Dropbox.DownloadFolder(Token, Path);
```
```sh title="CLI command example"

View File

@ -25,7 +25,6 @@ sidebar_position: 2
Result = OPI_Dropbox.GetListOfFolderFiles(Token, Path, True);
```
```sh title="CLI command example"

View File

@ -24,7 +24,6 @@ sidebar_position: 1
Result = OPI_Dropbox.GetObjectInformation(Token, Path, True);
```
```sh title="CLI command example"

View File

@ -24,7 +24,6 @@ sidebar_position: 13
Result = OPI_Dropbox.GetObjectVersionList(Token, Path, 1);
```
```sh title="CLI command example"

View File

@ -23,7 +23,6 @@ sidebar_position: 3
Result = OPI_Dropbox.GetPreview(Token, Path);
```
```sh title="CLI command example"

View File

@ -32,7 +32,6 @@ sidebar_position: 6
EndDo;
```
```sh title="CLI command example"

View File

@ -25,7 +25,6 @@ sidebar_position: 9
Result = OPI_Dropbox.MoveObject(Token, OriginalPath, TargetPath);
```
```sh title="CLI command example"

View File

@ -25,7 +25,6 @@ sidebar_position: 14
Result = OPI_Dropbox.RestoreObjectToVersion(Token, Path, Version);
```
```sh title="CLI command example"

View File

@ -25,7 +25,6 @@ sidebar_position: 5
Result = OPI_Dropbox.UploadFileByURL(Token, URL, Path);
```
```sh title="CLI command example"

View File

@ -29,7 +29,6 @@ sidebar_position: 4
Result = OPI_Dropbox.UploadFile(Token, ImagePath, Path, True);
```
```sh title="CLI command example"

View File

@ -26,7 +26,6 @@ sidebar_position: 3
Result = OPI_Dropbox.AddUsersToFile(Token, File, Email, False);
```
```sh title="CLI command example"

View File

@ -26,7 +26,6 @@ sidebar_position: 4
Result = OPI_Dropbox.AddUsersToFolder(Token, Folder, Email, False);
```
```sh title="CLI command example"

View File

@ -23,7 +23,6 @@ sidebar_position: 6
Result = OPI_Dropbox.CancelFilePublication(Token, File);
```
```sh title="CLI command example"

View File

@ -31,7 +31,6 @@ sidebar_position: 2
OPI_Tools.Pause(3);
EndDo;
```
```sh title="CLI command example"

View File

@ -23,7 +23,6 @@ sidebar_position: 1
Result = OPI_Dropbox.PublishFolder(Token, Path);
```
```sh title="CLI command example"

View File

@ -25,7 +25,6 @@ sidebar_position: 2
Result = OPI_Dropbox.AddTag(Token, Path, Tag);
```
```sh title="CLI command example"

View File

@ -25,7 +25,6 @@ sidebar_position: 3
Result = OPI_Dropbox.DeleteTag(Token, Path, Tag);
```
```sh title="CLI command example"

View File

@ -23,7 +23,6 @@ sidebar_position: 2
Response = OPI_Tools.JSONString(Response); //String
```
```sh title="CLI command example"

View File

@ -23,7 +23,6 @@ sidebar_position: 4
Response = OPI_Tools.JSONString(Response); //String
```
```sh title="CLI command example"

View File

@ -30,7 +30,6 @@ sidebar_position: 5
Response = OPI_Tools.JSONString(Response); //String
```
```sh title="CLI command example"

View File

@ -22,7 +22,6 @@ sidebar_position: 1
Response = OPI_Tools.JSONString(Response); //String
```
```sh title="CLI command example"

View File

@ -23,7 +23,6 @@ sidebar_position: 3
Response = OPI_Tools.JSONString(Response); //String
```
```sh title="CLI command example"

View File

@ -21,7 +21,6 @@ sidebar_position: 4
Response = OPI_GoogleCalendar.ClearMainCalendar(Token);
```
```sh title="CLI command example"

View File

@ -23,7 +23,6 @@ sidebar_position: 1
Response = OPI_Tools.JSONString(Response); //String
```
```sh title="CLI command example"

View File

@ -23,7 +23,6 @@ sidebar_position: 5
Response = OPI_Tools.JSONString(Response);
```
```sh title="CLI command example"

View File

@ -27,7 +27,6 @@ sidebar_position: 3
Response = OPI_Tools.JSONString(Response); //String
```
```sh title="CLI command example"

View File

@ -23,7 +23,6 @@ sidebar_position: 2
Response = OPI_Tools.JSONString(Response); //String
```
```sh title="CLI command example"

View File

@ -37,7 +37,6 @@ sidebar_position: 4
Response = OPI_Tools.JSONString(Response);
```
```sh title="CLI command example"

View File

@ -24,7 +24,6 @@ sidebar_position: 7
Response = OPI_Tools.JSONString(Response); //String
```
```sh title="CLI command example"

View File

@ -28,7 +28,6 @@ sidebar_position: 6
Response = OPI_Tools.JSONString(Response);
```
```sh title="CLI command example"

View File

@ -23,7 +23,6 @@ sidebar_position: 2
Response = OPI_Tools.JSONString(Response);
```
```sh title="CLI command example"
@ -37,7 +36,6 @@ sidebar_position: 2
```json title="Result"
[
{
"eventType": "default",
"attachments": [
@ -84,7 +82,6 @@ sidebar_position: 2
"etag": "\"3416857346088000\"",
"kind": "calendar#event"
},
]
```

View File

@ -24,7 +24,6 @@ sidebar_position: 3
Response = OPI_Tools.JSONString(Response); //String
```
```sh title="CLI command example"

View File

@ -25,7 +25,6 @@ sidebar_position: 5
Response = OPI_Tools.JSONString(Response); //String
```
```sh title="CLI command example"

View File

@ -27,7 +27,6 @@ sidebar_position: 1
Response = OPI_Tools.JSONString(Response); //String
```
```sh title="CLI command example"

View File

@ -25,7 +25,6 @@ sidebar_position: 4
Response = OPI_GoogleDrive.DeleteComment(Token, Identifier, Comment); //Map
```
```sh title="CLI command example"

View File

@ -25,7 +25,6 @@ sidebar_position: 3
Response = OPI_Tools.JSONString(Response); //String
```
```sh title="CLI command example"

View File

@ -27,7 +27,6 @@ sidebar_position: 2
Response = OPI_Tools.JSONString(Response); //String
```
```sh title="CLI command example"

View File

@ -29,7 +29,6 @@ sidebar_position: 7
Response = OPI_Tools.JSONString(Response); //String
```
```sh title="CLI command example"

View File

@ -26,7 +26,6 @@ sidebar_position: 5
Response = OPI_Tools.JSONString(Response); //String
```
```sh title="CLI command example"

View File

@ -24,7 +24,6 @@ sidebar_position: 9
Response = OPI_GoogleDrive.DeleteObject(Token, Identifier); //Map
```
```sh title="CLI command example"

View File

@ -26,7 +26,6 @@ sidebar_position: 6
Response = OPI_Tools.JSONString(Response); //String
```
```sh title="CLI command example"

View File

@ -25,7 +25,6 @@ sidebar_position: 2
Response = OPI_Tools.JSONString(Response); //String
```
```sh title="CLI command example"

View File

@ -26,7 +26,6 @@ sidebar_position: 10
Return Description;
```
```sh title="CLI command example"

View File

@ -25,7 +25,6 @@ sidebar_position: 3
Response = OPI_Tools.JSONString(Response); //String
```
```sh title="CLI command example"

View File

@ -25,7 +25,6 @@ sidebar_position: 1
Response = OPI_Tools.JSONString(Response); //String
```
```sh title="CLI command example"

View File

@ -29,7 +29,6 @@ sidebar_position: 8
Response = OPI_Tools.JSONString(Response); //String
```
```sh title="CLI command example"

View File

@ -32,7 +32,6 @@ sidebar_position: 4
Response = OPI_Tools.JSONString(Response); //String
```
```sh title="CLI command example"

View File

@ -33,7 +33,6 @@ sidebar_position: 2
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -33,7 +33,6 @@ sidebar_position: 3
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -39,7 +39,6 @@ sidebar_position: 1
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -30,7 +30,6 @@ sidebar_position: 1
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -27,7 +27,6 @@ sidebar_position: 3
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -25,7 +25,6 @@ sidebar_position: 2
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -27,7 +27,6 @@ sidebar_position: 1
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -29,7 +29,6 @@ sidebar_position: 3
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -27,7 +27,6 @@ sidebar_position: 2
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"

View File

@ -32,7 +32,6 @@ sidebar_position: 1
Response = OPI_Tools.JSONString(Response);
```
```sh title="CLI command example"

View File

@ -26,7 +26,6 @@ sidebar_position: 4
Response = OPI_Tools.JSONString(Response);
```
```sh title="CLI command example"

View File

@ -27,7 +27,6 @@ sidebar_position: 2
Response = OPI_Tools.JSONString(Response);
```
```sh title="CLI command example"

View File

@ -26,7 +26,6 @@ sidebar_position: 3
Response = OPI_Tools.JSONString(Response);
```
```sh title="CLI command example"

View File

@ -48,7 +48,6 @@ sidebar_position: 1
Response = OPI_Tools.JSONString(Response);
```
```sh title="CLI command example"

View File

@ -35,7 +35,6 @@ sidebar_position: 3
Response = OPI_Tools.JSONString(Response);
```
```sh title="CLI command example"

View File

@ -26,7 +26,6 @@ sidebar_position: 2
Response = OPI_Tools.JSONString(Response);
```
```sh title="CLI command example"

View File

@ -41,7 +41,6 @@ sidebar_position: 2
Response = OPI_Tools.JSONString(Response);
```
```sh title="CLI command example"

View File

@ -28,7 +28,6 @@ sidebar_position: 1
Response = OPI_Tools.JSONString(Response);
```
```sh title="CLI command example"

View File

@ -42,7 +42,6 @@ sidebar_position: 4
Response = OPI_Tools.JSONString(Response);
```
```sh title="CLI command example"

View File

@ -26,7 +26,6 @@ sidebar_position: 3
Response = OPI_Tools.JSONString(Response);
```
```sh title="CLI command example"

Some files were not shown because too many files have changed in this diff Show More