0.2.11 • Published 6 years ago

sa-mijn-account v0.2.11

Weekly downloads
140
License
ISC
Repository
-
Last release
6 years ago

First steps

Mijnaccount package requires node >= 6 version and npm >= 3 version. Currently supported OS: Linux & Mac OS.

To be able deploy your project to live you would need to get repository link, slug and secret from Sanoma Account team. Also you will be asked about your slug name (it will be used in mijnaccount site URL). P.S. You could change repository link and slug later in the sa-config.json file.

npm install -g sa-mijn-account

Note: if you have some problems with permissions, try to run this command with sudo.

Available commands

sa-mijn-account new {name}

Create new Mijn account development environment in current folder.

sa-mijn-account create-tile {name}

Add empty component to the project: add to imports and pass to Mijn account plugin as props. Look main.js file. Feel free to modify such components.

sa-mijn-account add-tiles

Add internal Mijn account components to the project: add to imports and pass to Mijn account plugin as props. Look main.js file.

sa-mijn-account deploy --secret={secret}

Steps, that should be done:

  • If it's initial project you would need to commit and push your changes
    • git init
    • git add --all
    • git commit -m 'Initial commit'
    • git remote add origin <repository-link>
    • git push -u origin master
  • Make new tag and push it remotely
    • git tag 1.0.0
    • git push --tags
  • Create actual build (this folder will be deployed to live!)
    • npm run build
  • Start deploying sa-mijn-account deploy --secret=<secret>. After few minutes your project will be deployed.
  • Check https://mijn.sanoma.nl/slug

Folder Structure

After creation, your project should look like this:

my-app/
  build/
  config/
  node_modules/
  src/
    assets/
      header.jpg
    components/
    App.vue
    event-bus.js
    main.js
  static/
  README.md
  index.html
  package.json
  .gitignore
  sa-config.json

Available scripts

npm run start

Runs the app in the development mode. Open http://localhost:8000 to view it in the browser.

npm run build

Builds the app for production to the dist folder. It correctly bundles app in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes. Your app is ready to be deployed!

Available sa-config.json options

Feel free to modify them. Sometimes changes require dev server restart, so to be sure restart dev server everytime on sa-config changes.

  • api_key: title's Gigya api_key
  • repository: link to project repository (should be provided by SA team)
  • slug: slug name
  • stage: SA javascript file version (test/staging/production)
  • title: Mijnaccount webpage title
  • screenset_prefix: screenset prefix specific for title
  • navigation_container: HTML id for where SA would be rendered
  • show_header_image: show/hide header landing image (true/false)
  • custom_header_image_url: custom header image URL (string/false)
  • custom_header: HTML code for custom header (string/false)
  • custom_background_color: custom background color (string/false; e.g. '#f4f4f4')
  • custom_foreground_color: custom foreground color (string/false; e.g. '#f4f4f4')
  • custom_topbar_color: custom topbar color (string/false; e.g. '#f4f4f4')

Dynamic grid system

For implementing dynamic grid system https://github.com/jbaysolutions/vue-grid-layout was used. Every title's component and SA component has injected update grid function in mounted and updated methods. So, grid recalculation will happens after such methods. It is also possible to call redraw grid manually: this.redrawGrid(), which is also injected into components.

For more info with screenshots and video go here: Mijnaccount

0.2.11

6 years ago

0.2.10

6 years ago

0.2.9

6 years ago

0.2.8

6 years ago

0.2.7

6 years ago

0.2.6

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.53

6 years ago

0.1.52

6 years ago

0.1.51

6 years ago

0.1.50

6 years ago

0.1.49

6 years ago

0.1.48

6 years ago

0.1.47

6 years ago

0.1.46

6 years ago

0.1.45

6 years ago

0.1.44

6 years ago

0.1.43

6 years ago

0.1.42

6 years ago

0.1.40

6 years ago

0.1.41

6 years ago

0.1.39

6 years ago

0.1.38

6 years ago

0.1.37

6 years ago

0.1.36

6 years ago

0.1.35

6 years ago

0.1.34

6 years ago

0.1.33

6 years ago

0.1.32

6 years ago

0.1.31

6 years ago

0.1.30

6 years ago

0.1.29

6 years ago

0.1.28

6 years ago

0.1.27

6 years ago

0.1.26

6 years ago

0.1.25

6 years ago

0.1.24

6 years ago

0.1.23

6 years ago

0.1.22

6 years ago

0.1.21

6 years ago

0.1.20

6 years ago

0.1.19

6 years ago

0.1.18

6 years ago

0.1.17

6 years ago

0.1.16

6 years ago

0.1.15

6 years ago

0.1.14

6 years ago

0.1.13

6 years ago

0.1.12

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago