Makefile added, .js files added, package.json updated.

master
Luka Vandervelden 2020-01-04 15:57:38 +01:00
parent 6938e01eae
commit 62e7226d84
15 changed files with 25 additions and 1712 deletions

View File

@ -1,7 +1,7 @@
// Generated by LiveScript 1.6.0 // Generated by LiveScript 1.6.0
(function(){ (function(){
var bulma, h, AuthWS; var bulma, h, AuthWS;
bulma = require("./bulma.ls"); bulma = require("maquette-bulma");
h = require('maquette').h; h = require('maquette').h;
AuthWS = function(socketUrl){ AuthWS = function(socketUrl){
var self, requestTypes, responseTypes, key, value; var self, requestTypes, responseTypes, key, value;

View File

@ -4,11 +4,11 @@
maquette = require("maquette"); maquette = require("maquette");
createProjector = maquette.createProjector, h = maquette.h; createProjector = maquette.createProjector, h = maquette.h;
projector = createProjector(); projector = createProjector();
bulma = require("./bulma.ls"); bulma = require("maquette-bulma");
AuthWS = require("./authws.ls"); AuthWS = require("./authws.js");
LoginForm = require("./login-form.ls"); LoginForm = require("./login-form.js");
UserConfigurationPanel = require("./user-configuration-panel.ls"); UserConfigurationPanel = require("./user-configuration-panel.js");
UserAdminPanel = require("./user-admin-panel.ls"); UserAdminPanel = require("./user-admin-panel.js");
model = { model = {
token: void 8 token: void 8
}; };

View File

@ -3,8 +3,8 @@
var maquette, h, bulma, AuthWS, LoginForm; var maquette, h, bulma, AuthWS, LoginForm;
maquette = require("maquette"); maquette = require("maquette");
h = maquette.h; h = maquette.h;
bulma = require("./bulma.ls"); bulma = require("maquette-bulma");
AuthWS = require("./authws.ls"); AuthWS = require("./authws.js");
LoginForm = function(args){ LoginForm = function(args){
var self, authWs; var self, authWs;
args || (args = {}); args || (args = {});

View File

@ -2,7 +2,7 @@
(function(){ (function(){
var h, AuthWS, UserAdminPanel; var h, AuthWS, UserAdminPanel;
h = require("maquette").h; h = require("maquette").h;
AuthWS = require("./authws.ls"); AuthWS = require("./authws.js");
UserAdminPanel = function(args){ UserAdminPanel = function(args){
var self, authws; var self, authws;
self = { self = {

View File

@ -2,7 +2,7 @@
(function(){ (function(){
var h, AuthWS, getFullName, defaultSideBarRenderer, defaultHeadingRenderer, Fields, UserConfigurationPanel; var h, AuthWS, getFullName, defaultSideBarRenderer, defaultHeadingRenderer, Fields, UserConfigurationPanel;
h = require("maquette").h; h = require("maquette").h;
AuthWS = require("./authws.ls"); AuthWS = require("./authws.js");
getFullName = function(self){ getFullName = function(self){
var fullName, ref$; var fullName, ref$;
fullName = ((ref$ = self.profile) != null ? ref$.fullName : void 8) || ""; fullName = ((ref$ = self.profile) != null ? ref$.fullName : void 8) || "";

File diff suppressed because it is too large Load Diff

109
main.js

File diff suppressed because one or more lines are too long

View File

@ -11,5 +11,9 @@
"url": "https://git.karchnu.fr/WeirdOS/authd-maquettec" "url": "https://git.karchnu.fr/WeirdOS/authd-maquettec"
}, },
"author": "", "author": "",
"license": "ISC" "license": "ISC",
"dependencies": {
"livescript": "^1.6.0",
"maquette-bulma": "git+https://git.karchnu.fr/WeirdOS/maquette-bulma.js"
}
} }

View File

@ -1,4 +1,4 @@
bulma = require "./bulma.ls" bulma = require "maquette-bulma"
h = require 'maquette' .h h = require 'maquette' .h
AuthWS = (socket-url) -> AuthWS = (socket-url) ->

View File

@ -4,13 +4,13 @@ maquette = require "maquette"
projector = create-projector! projector = create-projector!
bulma = require "./bulma.ls" bulma = require "maquette-bulma"
AuthWS = require "./authws.ls" AuthWS = require "./authws.js"
LoginForm = require "./login-form.ls" LoginForm = require "./login-form.js"
UserConfigurationPanel = require "./user-configuration-panel.ls" UserConfigurationPanel = require "./user-configuration-panel.js"
UserAdminPanel = require "./user-admin-panel.ls" UserAdminPanel = require "./user-admin-panel.js"
model = { model = {
token: void token: void

View File

@ -2,9 +2,9 @@ maquette = require "maquette"
{h} = maquette {h} = maquette
bulma = require "./bulma.ls" bulma = require "maquette-bulma"
AuthWS = require "./authws.ls" AuthWS = require "./authws.js"
LoginForm = (args) -> LoginForm = (args) ->
args or= {} args or= {}

View File

@ -1,6 +1,6 @@
{h} = require "maquette" {h} = require "maquette"
AuthWS = require "./authws.ls" AuthWS = require "./authws.js"
UserAdminPanel = (args) -> UserAdminPanel = (args) ->
self = { self = {

View File

@ -1,7 +1,7 @@
{h} = require "maquette" {h} = require "maquette"
AuthWS = require "./authws.ls" AuthWS = require "./authws.js"
get-full-name = (self) -> get-full-name = (self) ->
full-name = self.profile?.full-name || "" full-name = self.profile?.full-name || ""