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: guides/guide.md
+33-6Lines changed: 33 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,10 +77,10 @@ Router.map(function() {
77
77
To make `ember-apollo-client` work, we need to pass it as dependency for our engine in `app/app.js`. Additionally, we need to specify `ember-intl` as a dependency so that the the application has access to the addon's translations.
If you now run `npm run start-proxy` and navigate to [http://localhost:4200/form-builder](http://localhost:4200/form-builder) you might still see the "Welcome page"forthe new ember app. To get rid of it, remove the `<WelcomePage />` componentin`templates/application.hbs`. After, you should see a first, admittedly not very pretty, glance of the form builder:
133
+
134
+
<figure><img src="../.gitbook/assets/Screenshot from 2023-04-10 17-10-47.png" alt=""><figcaption></figcaption></figure>
135
+
136
+
Ember-caluma uses `ember-uikit`for styling, which is based on `SCSS`. To add `SCSS` support to our project, install `ember-cli-sass`:
137
+
138
+
```
139
+
ember install ember-cli-sass
140
+
```
141
+
142
+
After, rename `styles/app.css` to `styles/app.scss` and import the necessary stlyes:
To show some texts inthe form-builder you can configure the locale setting of `ember-intl` to `en` (instead of the default, `en-us`), forexamplein`application/route.js` (run `ember g route application`if it doesn't exist yet):
156
+
To get rid of the "Missing translation" labels you can configure the locale setting of `ember-intl` to `en` (instead of the default, `en-us`), forexamplein`application/route.js` (run `ember g route application`if it doesn't exist yet):
Finally, the form builder should be displayed correctly:
172
+
173
+
<figure><img src="../.gitbook/assets/Screenshot from 2023-04-10 17-19-20.png" alt=""><figcaption></figcaption></figure>
174
+
175
+
Congratulations - you now have all the basic building blocks to start building out your app! Currently, this is where the "getting started" guide ends - until there is more content, here are some possible next steps:
176
+
177
+
* In order to familiarize yourself with the form builder, try adding a form and some questions.
178
+
* Set up a new route that lists the available forms (using the `allForms` query)
179
+
* Make the forms selectable and create a `Document` for the selected form
0 commit comments