-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Macegor/develop
Предрелиз
- Loading branch information
Showing
24 changed files
with
760 additions
and
470 deletions.
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
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,16 +1,17 @@ | ||
Описание.Имя("onecore") | ||
.Версия("0.1.2") | ||
.Версия("0.2.1") | ||
.Автор("Андрей Савадеров (Macegor)") | ||
.АдресАвтора("[email protected]") | ||
.Описание("Фреймворк на движке onescript, созданный для разработки web-приложений любой сложности, используя компонентный подход.") | ||
.ВерсияСреды("2.0.0.519") | ||
.ВерсияСреды("2.0.0") | ||
.ВключитьФайл("src") | ||
.ВключитьФайл("lib.config") | ||
.ВключитьФайл("LICENSE") | ||
.ВключитьФайл("readme.md") | ||
.ЗависитОт("json") | ||
.ЗависитОт("strings") | ||
.ЗависитОт("sql", "1.3.1.1") | ||
.ЗависитОт("entity") | ||
.ЗависитОт("cli") | ||
.ЗависитОт("fs") | ||
.ЗависитОт("logos") | ||
|
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
// Используйте IntelliSense, чтобы узнать о возможных атрибутах. | ||
// Наведите указатель мыши, чтобы просмотреть описания существующих атрибутов. | ||
// Для получения дополнительной информации посетите: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Отладка 1Script", | ||
"type": "oscript", | ||
"request": "launch", | ||
"program": "${workspaceRoot}/main.os", | ||
"args": [], | ||
"cwd": "${workspaceRoot}", | ||
"env": {}, | ||
"runtimeExecutable": null, | ||
"runtimeArgs": [], | ||
"debugPort": 2801 | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#Использовать onecore | ||
|
||
// Подключение функционала | ||
Приложение.ИспользоватьORM(); | ||
Приложение.ПодключитьБазуДанныхORM("Основная", "КоннекторSQLite", "FullUri=file:main.db"); | ||
|
||
// Подключение компонентов | ||
Приложение.ПодключитьКомпонент("Основной", "main", Истина); | ||
|
||
// Инициализация и запуск | ||
Приложение.Инициализировать(); | ||
Приложение.Запустить(); |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
lib.additional=./oscript_modules |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
Процедура ПриИнициализацииКомпонента() Экспорт | ||
|
||
КонецПроцедуры | ||
|
||
Процедура ПриФормированииМаршрутов(Маршруты) Экспорт | ||
|
||
Маршруты.Добавить("/", "Главная"); | ||
|
||
КонецПроцедуры | ||
|
||
Процедура ПриУстановкеПараметровСеанса(ПарметрыСеанса) Экспорт | ||
|
||
КонецПроцедуры |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
Перем Контекст; | ||
|
||
Процедура Инициализация() Экспорт | ||
Контекст.Данные.Вставить("Заголовок", "Главная"); | ||
КонецПроцедуры | ||
|
||
&ФормироватьШаблон("Основной.Шаблоны.Главная") | ||
Процедура GET() Экспорт | ||
|
||
Контекст.Данные.Вставить("ВыводимыйТекст", Строка(ТекущаяДата())); | ||
|
||
КонецПроцедуры |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{{ Вложить("Основной.Шапка") }} | ||
<h1>{{Контекст.Данные.ВыводимыйТекст}}</h1> | ||
{{ Вложить("Основной.Подвал") }} |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<!DOCTYPE html> | ||
<html lang="ru"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>{{Контекст.Данные.Заголовок}}</title> | ||
</head> | ||
<body> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -205,4 +205,4 @@ | |
Контекст.Ответ.Записать(ТекстОтвета); | ||
КонецЕсли; | ||
|
||
КонецПроцедуры | ||
КонецПроцедуры |
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
Oops, something went wrong.