-
Notifications
You must be signed in to change notification settings - Fork 36
Development
- src/main/java/net/bndy/wf/modules: Java Modules (services and RESTful API)
- src/main/java/net/bndy/wf/controller: Controllers
- src/main/resources/templates: Thymeleaf Modules
- src/main/resources/public/docs/api: Auto-generated API Documentation (Swagger UI)
-
src/main/resources/static/apps/admin: AngularJS Application for Admin Panel
- src/main/resources/static/apps/admin/modules: AngularJS Modules
- src/main/resources/static/apps/admin/modules/example: Style Examples
ui-actions, ui-dialog, ui-html-editor, ui-input, ui-menu-tree, ui-no-data, ui-notifications, ui-page-content, ui-page-header, ui-search, ui-tree, ui-upload, ui-wait-on
-
Non-Frontend
You just use thymeleaf and not angularjs, you can define controllers in src/main/java/net/bndy/wf/controller and thymeleaf templates in src/main/resources/templates.
-
AngularJS
You can implement api in src/main/java/net/bndy/wf/modules and angularjs controllers in src/main/resources/static/apps/admin/modules. Each feature should include one html file and one js file.
Call API (
appService
service)[ajaxGet|ajaxSave|ajaxDelete]('/api/...'[, data])
to request resources,ajaxSave
instead ofajaxPut
andajaxPost
which will callajaxPut
orajaxPost
according to data.id.Dialog & Notification (
appDialog
service)[loading|wait|clearWait|success|info|warning|error|alert|confirm|confirmDeletion|show|showWin]
-
International (Languages)
You can define both of backend languages and frontend languages in src/main/resources/i18n/. And you can use it in AngularJS modules directly.
Examples:
welcome.message=Hi, {0}!
in i18n/messages.properties<!-- call in AngularJS --> <span ng-bind="{welcome.message|translate:[name]}"></span> <!-- call in Thymelefa --> <span th:text="#{welcome.message(${name})}"></span>