You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DEVELOPER.md
+17-2Lines changed: 17 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -39,13 +39,13 @@ Now you should an api key, api secret, and an organization associated to your Us
39
39
2. Run `gulp workspace` to build and inject dependencies, the open the `workspace/index.html` file in a browser - **you will need to run `gulp workspace` and refresh the page after every change**
40
40
41
41
42
-
##### Architecture
42
+
##### Workspace Architecture
43
43
44
44
The workspace environment works by loading a parent angular module, which depends on impac-angular ( 'impacWorkspace' ). This allows us to configure impac-angular's services as required.
45
45
46
46
Take a look at the `workspace/index.js` file and you'll see default configurations of impac-angular's provider services to enable the workspace to run.
47
47
48
-
For more information on the configurations available on impac-angular's provider services see README.md **Angular Providers Configurations** section.
48
+
For more information on the configurations available on impac-angular's provider services see [README.md](./README.md)**Impac Angular Providers & Services** section.
Copy file name to clipboardExpand all lines: README.md
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ You can post issues, and submit pull requests directly to the #develop branch of
22
22
23
23
Impac!™ frontend library can be included in any project based on the Maestrano platform, just fork this repository, read below for information and guidelines on using this library!
24
24
25
-
**For Developers looking to create Widgets, and modify the library, have a look at DEVELOPER.md, and start developing!**
25
+
**For Developers looking to create Widgets, and modify the library, have a look at [DEVELOPER.md](./DEVELOPER.md), and start developing!**
26
26
27
27
<br>
28
28
@@ -56,24 +56,25 @@ Embed angular-impac's wrapper directive `'impacDashboard'`. You can use either E
56
56
<divimpac-dashboard></div>
57
57
```
58
58
59
-
### Angular Providers Configurations
59
+
### Impac Angular Providers & Services
60
60
---
61
-
impac-angular requires that you configure it's **ImpacLinkingProvider service** with some core data.
62
61
63
-
#### API
62
+
Note: This section is a work-in-progress, not all services and providers that can be used to configure impac-angular are documented.
64
63
65
-
##### linkData(options)
66
-
_type_: Object<br>
67
-
_usage_: Linking core User data into impac-angular to meet the requirements of the library, and keeping concerns seperate.
64
+
---
65
+
66
+
#### Impac Linking Provider (linking.svc.coffee)
67
+
68
+
Provides impac-angular with core data that it needs to run. This providers configuration is **required** and an error with be thrown if the below configurations have not been given.
# provides to retrieve user data and organizations
89
+
# from MNOHUBAPI.
86
90
data =
87
91
user:ImpacConfig.getUserData
88
92
organizations:ImpacConfig.getOrganizations
@@ -93,14 +97,10 @@ _usage_: Retrieving organizations and current organization id.
93
97
)
94
98
95
99
```
96
-
### Optional Configurations
97
-
[TODO: Expand on this section]<br>
98
-
99
-
There are other provider services for dynamically configuring impac-angular on an app by app basis. For example, there is a routes provider for configuring api end-points and such. There is a theming provider for configuring chart colour themes and soon more. There is an assets provider for configuring static assets.
100
100
101
-
#### ImpacAssetsProvider
101
+
#### Impac Assets Provider (assets.svc.coffee)
102
102
103
-
The **ImpacAssetsProvider** service is used to configure paths for static assets hosted by the parent application.
103
+
Provides impac-angular with paths for static assets hosted by the parent application.
0 commit comments