0.0.28 • Published 2 years ago

@protorians/aun v0.0.28

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Protorians AUN

Protorian AUN est une librairie JavaScript pour la conception de l'interface utilisateur WEB. Il est écrit en TypeScript et a été crée en utilisant l'outils ViteJS. Le fonctionnement est basé sur l'imbrication de fonctions widgets et composants. Les Widgets sont des représentant des balise native en HTML. Par contre les composants sont des blocs de widgets en vue d'une réutilisation et d'une personnalisation par usage par le biais de propriétés.

Aperçu

Pour cet exemple nous allons créer un composant pour afficher Hello World

import type { IWProps } from "@protorians/aun/types";
import { Widget } from "@protorians/aun/index";

// Typage de propriétés
interface IHelloProps extends IWProps {
  name: string;
}
// Composant
const myComponent = (props: IHelloProps) =>
  Widget({
    child: TextWidget({
      child: `Hello ${props.name}`,
    }),
  });

// Hydrater sur la balise HTML "<HelloWorld name="Me"></HelloWorld>"
HydrateComponentQueue("HelloWorld", myComponent);

// Deposer le composant dans la balise HTML avec l'id "root" (<div id="root"></div>)
DropComponent(myComponent, "#root");
DropComponent(myComponent, document.querySelector("#root"));

License

Copyright 2023 — Protorians

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0.0.20

2 years ago

0.0.21

2 years ago

0.0.22

2 years ago

0.0.23

2 years ago

0.0.24

2 years ago

0.0.25

2 years ago

0.0.17

2 years ago

0.0.18

2 years ago

0.0.19

2 years ago

0.0.26

2 years ago

0.0.28

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3-beta.1

2 years ago

0.0.3-beta.0

2 years ago

0.0.2-beta.3

2 years ago

0.0.2-beta.2

2 years ago

0.0.2-beta.1

2 years ago

0.0.2-beta.0

2 years ago

0.0.1-beta.20

2 years ago

0.0.1-beta.19

2 years ago

0.0.1-beta.18

2 years ago

0.0.1-beta.17

2 years ago

0.0.1-beta.15

2 years ago

0.0.1-beta.14

2 years ago

0.0.1-beta.11

2 years ago

0.0.1-beta.10

2 years ago

0.0.1-beta.3

2 years ago

0.0.1-beta.2

2 years ago

0.0.1-beta.1

2 years ago

0.0.1-beta.0

2 years ago