@guido.software/guido-component-game-role-security

0.1.0 • Public • Published

guido-component-game-role-security

Create the component for a role in security in the context of game development.

Usage

Import

The code can be used as an ES Module

import { component } from '@guido.software/guido-component-game-role-security'

or as IIFE:

<script src="./js/vendor/guido-component-game-roles-security.min.js"></script>
<script>window.security = window.software.guido.components.game.roles.security</script>

Then use it as:

var serialised = window.security(
	document.createElement('div'),
	{},
	JSON.stringify,
)

API

This component expects an HTMLElement to replace, a Redux-like state object and a builder to transform the GIL into a consumable format. GIL object. GIL stands for Guido Interface Language. It is a JSON-serialisable representation of a view. The focus is on DOM, but it can be extended to support other markup languages as well.

Installation

With npm:

npm install @guido.software/guido-component-game-role-security

With yarn

yarn add @guido.software/guido-component-game-role-security

Issues

The code is mirrored on Codeberg in case you want to report errors. I don't accept registrations on my Forgejo instance.

LICENSE

AGPL version 3 or newer. See LICENSE

Package Sidebar

Install

npm i @guido.software/guido-component-game-role-security

Weekly Downloads

1

Version

0.1.0

License

AGPL-3.0-or-later

Unpacked Size

42.5 kB

Total Files

7

Last publish

Collaborators

  • ryuno-ki