Skip to content
This repository has been archived by the owner on Aug 31, 2019. It is now read-only.

mitre/heimdall-vue

Repository files navigation

ATTENTION: THIS REPOSITORY HAS BEEN DEPRECATED IN FAVOR OF https://github.com/mitre/heimdall-vuetify

Check that repository for most up to date edition of this software.

Netlify Status

https://heimdall-vue.netlify.com

Samples

Example JSON profiles are stored in sample_jsons/

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Compiles and runs as electron application

npm run electron

Run your tests

npm run test

Lints and fixes files

npm run lint

Run your end-to-end tests

npm run test:e2e

Run your unit tests

npm run test:unit

Run storybook

npm run storybook

Customize configuration

See Configuration Reference.

Notes/Commmon Problems

Proxy Notes

If you have a proxy, remember to setup your NPM enviroment to respect the proxy

Install Problems

If you run "npm install" and get the error "unable to get local issuer certificate", you can run this command:

  npm config set strict-ssl false

If you run "npm install" and get the error "node-pre-gyp ERR! Completion callback never invoked!", you can delete the "package-lock.json" file and try it again.

Contributing

Components

When developing Vue components, add your component to src/components, following a similar style to existing components.

Storybook integration

For visual components it is advised to add a story view of the component to storybook. This will serve as a visualization of the component under test conditions and serves to help other developers know how newly developed components are supposed to be used.

First thing to do is after creating the component, register it in storybooks config.js file (.storybook/config.js)

import MyComponent from '../src/components/MyComponent.vue';
Vue.component('MyComponent',MyComponent);

This needs to be done as storybook runs its own instance of vue.

Next step is to add a story to stories/index.stories.js or add one to a file in stories/ then import said story into stories/index.stories.js

Stories look like the following example from https://storybook.js.org/docs/guides/guide-vue/:

storiesOf('Button', module)
  .add('with text', () => '<my-button>with text</my-button>')
  .add('with emoji', () => '<my-button>πŸ˜€ 😎 πŸ‘ πŸ’―</my-button>')
  .add('as a component', () => ({
    components: { MyButton },
    template: '<my-button :rounded="true">rounded</my-button>'
  }));

Release Process

Branches

The master branch contains the latest version of the software leading up to a new release.

Other branches contain feature-specific updates.

Tags

Tags indicate official releases of the project.

Please note 0.x releases are works in progress (WIP) and may change at any time.

Legal Stuff

NOTICE

Β© 2019 The MITRE Corporation.

Approved for Public Release; Distribution Unlimited. Case Number 18-3678.

NOTICE

MITRE hereby grants express written permission to use, reproduce, distribute, modify, and otherwise leverage this software to the extent permitted by the licensed terms provided in the LICENSE.md file included with this project.

NOTICE

This software was produced for the U. S. Government under Contract Number HHSM-500-2012-00008I, and is subject to Federal Acquisition Regulation Clause 52.227-14, Rights in Data-General.

No other use other than that granted to the U. S. Government, or to those acting on behalf of the U. S. Government under that Clause is authorized without the express written permission of The MITRE Corporation.

For further information, please contact The MITRE Corporation, Contracts Management Office, 7515 Colshire Drive, McLean, VA 22102-7539, (703) 983-6000.