open-index/open-npm huggingface dataset:
npm package: @helios-interactive/garuda-js
Description: Garuda Config Management
Author: Michael Neil
Latest version: 1.1.0

# Garuda
> Config Manager

Garuda loads configuration for apps from the file `/garuda.config.json`.

Additionally, if a the file `/garuda.local.config.json` is found, settings in that file will be merged into the configuration loaded from `/garuda.config.json`.

## Functions and Methods

### garuda()
Alias of garuda.set()

### garuda.get([prop], [options]) ⇒ `Promise.<Object>`
Get a property from garuda. All keys are found by string.
garuda.get('path.to.property.at.index.2')

**Returns**: `Promise.<Object>` - - A promise containing the config  

| Param | Type | Description |
| --- | --- | --- |
| [prop] | `string` OR `Object` | string - namespacecd property, OR options object |
| [options] | `Object` | options object |

### garuda.set(propOrVal, value) ⇒ `Promise.<Object>`
Set a property or properties

**Returns**: `Promise.<Object>` - - A promise containing the updated config object  

| Param | Type | Description |
| --- | --- | --- |
| propOrVal | `string` OR `Object` | string: namespaced property OR val: config object |
| value | `\*` | when first parameter is a string, sets specified property to this string |


### garuda.retrieveLocalStorage() ⇒ `Object`
Retrieves config from local storage

**Returns**: `Object` - - config as stored in local storage  

### garuda.clearLocalStorage()
Clears garuda local storage and resets config to configs loaded from server.
Note: When config is changed through `garuda.set()` it automatically saved
to local storage. Clearing local storage reverts garuda to configs loaded
from the server.

## Events
### `garuda-updated`
Every time the config is updated using `garuda.set()` or it's alias, Garuda dispatches an the event `garuda-updated` on the `document`. The event parameter sent to the callback function of the event listener contains a `details` property that includes an object detailing the updates.

```
document.addEventListener('garuda-updated', (e) => {
  const updates = e.detail;
  console.log(updates);
});
```
npm package: @helios-interactive/vue-garuda-admin
Description: Vue admin panel for displaying and editing garuda config
Author: Changbai Li
Latest version: 1.1.0

# vue-garuda-admin

> Vue plugin that provides admin panel for displaying and editing [garuda](https://www.npmjs.com/package/@helios-interactive/garuda-js) config

[![NPM](https://nodei.co/npm/@helios-interactive/vue-garuda-admin.png)](https://npmjs.org/package/@helios-interactive/vue-garuda-admin)

## Usage

Install the package through npm.
``` bash
npm i --save @helios-interactive/vue-garuda-admin
```

In your vue.js project, install vue-garuda-admin

``` javascript
import Vue from 'vue';
import VueGarudaAdmin from '@helios-interactive/vue-garuda-admin';
Vue.use(VueGarudaAdmin);
```

Now the vue component `<garuda-admin />` is available in any templates.

``` Vue
<template>
  <div class="admin-example">
    <h1>Garuda Admin</h1>
    <garuda-admin @saved="configSaved" @reverted="configReverted"/>
  </div>
</template>

<script>
export default {
  name: 'AdminExample',
  methods: {
    configSaved(config) {
      console.log('config saved', config);
    },
    configReverted(config) {
      console.log('config reverted', config);
    },
  },
};
</script>
```
npm package: @helios-interactive/vue-modal-termsandconditions
Description: A simple terms and conditions modal for Vue
Author: Caitlin Boldt
Latest version: 1.0.1

# Vue Modal - Terms and Conditions

##### Super simple and easy to use.

<p align="center">
  <img src="https://media.giphy.com/media/KZvgNZjVmtnHtWCD8b/giphy.gif">
</p>


## How to use

```bash
npm install @helios-interactive/vue-modal-termsandconditions --save
```

Add the plugin to the `main.js` file.

```javascript
import Vue from 'vue';
import ModalTandc from '@helios-interactive/vue-modal-termsandconditions';

Vue.use(ModalTandc);
```

Now add the modal to your template.

```html
<a @click="openModal">Terms and Conditions</a>
<modal-tandc
v-show="modal"
@hide="closeModal">  
    <template v-slot:header>
    <h1>Terms and Conditions</h1>
    </template>
    <template v-slot:body>
    <!-- Add in the body text here -->
    </template>
    <template v-slot:footer-btn>
    Button Text
    </template>
</modal-tandc>
```

Then add the open and close modal functions to the script.

```javascript
import ModalTandc from '@helios-interactive/vue-modal-termsandconditions/src/plugins/ModalTandc'

components: { ModalTandc },
data() {
  return {
    modal: false
  }
},
methods: {
  openModal() {
    this.modal = true;
  },
  closeModal() {
    this.modal = false;
  }
}
```

## CSS

Current styles:

```css
.modal {
  background-color: rgba(0, 0, 0, 0.452);
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 999;
}
.inner-modal {
  background-color: #ffffff;
  border: 3px solid lightslategray;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.445);
  font-family: 'Tahoma', sans-serif;
  height: 68%;
  margin: 5% auto;
  padding: 20px 30px;
  width: 68%;
}
.header {
  text-align: left;
}
.body-text {
  max-height: 67%;
  overflow-y: scroll;
  text-align: left;
}
::-webkit-scrollbar {
  display: none; 
}
.modal-button {
  background-color: lightslategray;
  border-radius: 5%;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin-top: 25px;
  outline: none;
  padding: 10px 15px;
}
.modal-button:active {
  background-color: #ffffff;
  border: 2px solid lightslategray;
  color: lightslategray;
}
```