-
Notifications
You must be signed in to change notification settings - Fork 69
Add documentation about start of generated applications #118
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
Open
Anisimova2020
wants to merge
22
commits into
master
Choose a base branch
from
feature-add-ember3-gen-doc
base: master
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 all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
41abcf7
Add stubbed generated project structure page
ffd913f
Add stubbed generated model page
4bc8ad2
Merge branch 'master' of https://github.com/Flexberry/flexberry.githu…
673b05e
Add some generated structure info
3eec6b0
Add some generated structure info
5424b1b
Add stubbed page about start of generated app
a558b17
Merge with current version
ddda6e1
Add review of main functions of generated app
238b52c
Add review of odata api
fd1ad00
Add stubbed page with docs about regeneration
b0eae8f
Merge branch 'master' of https://github.com/Flexberry/flexberry.githu…
e3f234e
Fullfill docs about regeneration
77f7909
Merge branch 'master' of https://github.com/Flexberry/flexberry.githu…
683f587
Add extra links to other pages of documentation
Anisimova2020 dbdaf29
Fix links for docs about app genertion.
hvostya 40f9e3d
Added part of FE-plugin docs
hvostya 66aecf8
Added matadata info and odataservice installing info.
hvostya ad00f4d
Added docs about backend generation and manual frontend generation .
hvostya 6faf3cb
Added blueprints info.
hvostya 18e3f5b
Small fixes to blueprints info.
Anisimova2020 d8b0901
Добавила информацию по ген-ции, неб. правки стиля
Nasutya 4b66531
Небольшие правки
Nasutya 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 hidden or 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
Binary file added
BIN
+22.8 KB
images/pages/products/flexberry-ember/ember-flexberry/generation/FE-plugin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.07 KB
...cts/flexberry-ember/ember-flexberry/generation/FE-regenerate-backend-choise.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+22.5 KB
...s/products/flexberry-ember/ember-flexberry/generation/FE-regenerate-backend.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26.5 KB
...ucts/flexberry-ember/ember-flexberry/generation/FE-regenerate-frontend-full.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+16.9 KB
.../products/flexberry-ember/ember-flexberry/generation/FE-regenerate-frontend.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+70.4 KB
...ducts/flexberry-ember/ember-flexberry/generation/FEOdata-addexistingproject.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.42 KB
.../products/flexberry-ember/ember-flexberry/generation/FEOdata-addodataconfig.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.72 KB
...ucts/flexberry-ember/ember-flexberry/generation/FEOdata-addprojectreference.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+31.6 KB
...oducts/flexberry-ember/ember-flexberry/generation/FEOdata-chooseprojecttype.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.5 KB
...s/products/flexberry-ember/ember-flexberry/generation/FEOdata-createproject.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+8.62 KB
...pages/products/flexberry-ember/ember-flexberry/generation/FEOdata-forbidden.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+48.9 KB
...ducts/flexberry-ember/ember-flexberry/generation/FEOdata-installedflexberry.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.6 KB
.../products/flexberry-ember/ember-flexberry/generation/FEOdata-installedunity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.22 KB
...es/products/flexberry-ember/ember-flexberry/generation/FEOdata-removeextras.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.47 KB
...es/products/flexberry-ember/ember-flexberry/generation/FEOdata-removeoracle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+35.1 KB
...pages/products/flexberry-ember/ember-flexberry/generation/FEOdata-viewodata.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26.9 KB
...es/pages/products/flexberry-ember/ember-flexberry/generation/FEOdata-webapi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+44.4 KB
images/pages/products/flexberry-ember/ember-flexberry/generation/backend-API.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.1 KB
.../products/flexberry-ember/ember-flexberry/generation/frontend-build-success.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+44.4 KB
...s/flexberry-ember/ember-flexberry/generation/frontend-editform-with-details.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+34.7 KB
...ucts/flexberry-ember/ember-flexberry/generation/frontend-editform-with-enum.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+29.7 KB
...products/flexberry-ember/ember-flexberry/generation/frontend-empty-listform.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.9 KB
images/pages/products/flexberry-ember/ember-flexberry/generation/frontend-menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26.3 KB
...s/products/flexberry-ember/ember-flexberry/generation/frontend-saved-master.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+32.5 KB
.../products/flexberry-ember/ember-flexberry/generation/frontend-saved-masters.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+49.9 KB
...products/flexberry-ember/ember-flexberry/generation/frontend-start-terminal.png
Oops, something went wrong.
Binary file added
BIN
+27.1 KB
.../pages/products/flexberry-ember/ember-flexberry/generation/frontend-started.png
Oops, something went wrong.
Binary file added
BIN
+29.6 KB
...ges/products/flexberry-ember/ember-flexberry/generation/frontend-validation.png
Oops, something went wrong.
Binary file added
BIN
+65.6 KB
.../flexberry-ember/ember-flexberry/generation/generated-backend-cors-enabling.png
Oops, something went wrong.
Binary file added
BIN
+85.4 KB
...s/flexberry-ember/ember-flexberry/generation/generated-backend-url-changing.png
Oops, something went wrong.
Binary file added
BIN
+5.58 KB
...oducts/flexberry-ember/ember-flexberry/generation/generated-frontend-config.png
Oops, something went wrong.
687 changes: 687 additions & 0 deletions
687
pages/products/flexberry-ember/3.x/app-generation/efd3_app-generation.md
Large diffs are not rendered by default.
Oops, something went wrong.
54 changes: 54 additions & 0 deletions
54
...oducts/flexberry-ember/3.x/app-generation/efd3_generated-app-regeneration.ru.md
This file contains hidden or 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,54 @@ | ||
| --- | ||
| title: Перегенерация приложений | ||
| sidebar: flexberry-ember-3_sidebar | ||
| keywords: Flexberry Ember | ||
| toc: true | ||
| permalink: ru/efd3_generated-app-regeneration.html | ||
| lang: ru | ||
| summary: Обзор возможностей перегенерации сгенерированных приложений | ||
| --- | ||
|
|
||
| > Изменять настройки объектов данных (представления, названия полей, новые классы, связи и прочее), форм и всего приложения настоятельно рекомендуется во [Flexberry Designer](fd_flexberry-designer.html), эти изменения при перегенерации могут идти как в клиентское, так и серверное приложение. Однако изменения средствами [Flexberry Designer](fd_flexberry-designer.html) способны затереть пользовательский код. | ||
|
|
||
| ## Правила перегенерации серверного приложения | ||
|
|
||
| Серверное приложение состоит из объектов данных и непосредственно OData-бакенда. | ||
| Весь пользовательский код в объектах данных следует располагать в [скобки программиста](fo_programmer-brackets.html), чтобы он не был затёрт при перегенерации. Для OData-бакенда такого механизма не предусмотрено. | ||
|
|
||
| Для перегенерации серверного приложения из меню стадии следует выбрать `Ember -> Backend -> ASP.Net -> Генерировать`. | ||
|
|
||
|  | ||
|
|
||
| В настоящее время не существует способа перегенерации отдельных классов на бэкенде, поэтому она запускается целиком для всех классов. Однако можно запустить перегенерацию не всего серверного приложения, а исключительно объектов данных или непосредственно OData-бакенда. | ||
|
Contributor
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. Сейчас уже, вроде как, есть? |
||
|
|
||
|  | ||
|
|
||
| ## Правила перегенерации клиентского приложения | ||
|
|
||
| Нужно всегда четко понимать, какие файлы затрагивает перегенерация того или иного класса. | ||
|
|
||
| При перегенерации модели перезаписываются метаданные в папке `vendor/flexberry` сгенерированного Ember-приложения, [модель](efd3_model.html) и [сериализатор](efd3_serializer.html) в папке `mixins/regererated`, а также [модель](efd3_model.html) в папке `app/models`. | ||
|
|
||
| При перегенерации формы изменяются метаданные в папке `vendor/flexberry` сгенерированного Ember-приложения, а также соответствующие [контроллер, роут, шаблон и файлы локализации](efd3_form.html). | ||
|
|
||
| Любые способы перегенерации могут повредить пользовательские изменения в исходном коде. Не рекомендуется производить перегенерацию, особенно, перегенерацию приложения целиком, непосредственно в папку проекта: рекомендуется сгенерировать приложение в стороннюю папку и оттуда перенести нужные изменения в проект, или генерировать только метаданные, а по ним при помощи соответствующих команд генерации из командной строки изменять требуемые файлы приложения. | ||
|
|
||
| > Не запускать перегенерацию клиентского приложения без уверенности, что это не затрет сделанные ранее изменения в исходном коде. В случае, если нужный пользовательский код всё-таки был затерт при перегенерации, рекомендуется откатить соответствующие изменения средствами системы контроля версий и выполнить повторную перегенерацию согласно изложенным инструкциям. | ||
|
|
||
| Для выполнения полной перегенерации клиентского приложения из [Flexberry Designer](fd_flexberry-designer.html), можно воспользоваться контекстным меню стадии `Ember -> Frontend -> EmberJS -> Генерировать всё` (либо выполнить команду `Генерировать метаданные`, после чего [перегенерировать приложение из командной строки](efd3_app_generation.html)). | ||
|
|
||
|  | ||
|
|
||
| ### Перегенерация отдельных моделей и форм | ||
|
|
||
| Средствами [Flexberry Designer](fd_flexberry-designer.html) доступна перегенерация отдельных моделей и форм, для этого у соответствующего элемента на диаграмме трубуется выбрать в контекстном меню пункт `Генерировать frontend`. | ||
|
|
||
|  | ||
|
|
||
| > Из-за особенностей отображения проекций в [моделях](efd3_model.html) если, например, во [Flexberry Designer](fd_flexberry-designer.html) было изменено представление детейла, то требуется перегенерация как детейлового класса, так и класса-агрегатора. | ||
|
|
||
| Также перегенерация отдельных моделей и форм возможна посредством специальных команд командной строки. | ||
|
|
||
| ### Использование дополнительных команд командной строки для перегенерации нескольких моделей и форм | ||
|
|
||
| В настоящий момент, помимо [возможности генерации из командной строки](efd3_app-generation.html), ведётся доработка дополнительных команд командной строки для перегенерации нескольких [моделей](efd3_model.html) и [форм](efd3_form.html) одновременно. | ||
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.
Часть для вин-дизайнера неактуальна. Надо убрать текст и изображения