This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"openapi":"3.0.0","info":{"title":"simple-api","description":"Simplified api for external devs","version":"0.1.0"},"components":{"securitySchemes":{"auth_required":{"type":"oauth2","description":"Put this access token in the `Authorization: Bearer <token>` header","flows":{"implicit":{"authorizationUrl":"https://auth.esnah.com//realms/dev/protocol/openid-connect/auth","scopes":{"group:*":"Required for group scope"}}}}}},"servers":[{"url":"http://localhost:3000/"},{"url":"https://localhost:3000/"}],"paths":{"/organization":{"get":{"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"uid":{"type":"string","format":"uuid","example":"b28ffa2c-35e9-4459-b836-606b27edec5f"},"created_at":{"type":"string","format":"date-time","description":"ISO formatted datetime (UTC, with Z at the end)","example":"2020-01-08 14:49:53.769951Z"},"updated_at":{"type":"string","format":"date-time","nullable":true,"description":"ISO formatted datetime (UTC, with Z at the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*, | |
*:after, | |
*:before { | |
box-sizing: inherit; | |
} | |
html { | |
box-sizing: border-box; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { h, app } from "hyperapp" | |
import pupa from "pupa" | |
import template from "template.html" | |
const state = { | |
count: 0 | |
} | |
const actions = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { app } from "hyperapp" | |
function HOA(app) { | |
/* HOA utilities */ | |
return function enhancer(props, container, isModule) { | |
/* HOA on module props too */ | |
for (var name in props.modules) { | |
props.modules[name] = enhancer(props.modules[name], container, true) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @namespace [App] */ | |
export interface State {} | |
export interface Thunk { | |
(...fn: Function[]): any | null | void | |
} | |
export type ActionResult<State extends Hyperapp.State> = | |
| Partial<State> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function Refs(app, view) { | |
return { | |
state: { | |
refs: {} | |
}, | |
actions: { | |
refs: { | |
setRef(state, actions, { key, element }) { | |
return { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default (props = { initialValue: 0, unit: '' }, children) => ({ | |
state: { | |
count: props.initialValue, | |
unit: props.unit | |
}, | |
actions: { | |
inc: (state, actions, data, emit) => emit('change', { count: state.count + 1 }), | |
dec: (state, actions, data, emit) => emit('change', { count: state.count + 1 }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
var _$0 = this; | |
var _$1 = Object.defineProperty; | |
function _0(a) { | |
return `REQUIRE_${a}`; | |
} | |
function _2(sel, data) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const escape = encodeURI; | |
(function(){ | |
console.log(window[[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(![]+[])[!+[]+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(![]+[])[!+[]+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(![]+[])[!+[]+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(![]+[])[!+[]+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(![]+[])[!+[]+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+!+[]]+(+[![]]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(![]+[])[!+[]+!+[]]])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!+[]+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const filter = (fn, [fst, ...rest]) => | |
[fst, ...rest].length === 0 ? [] : | |
fn(fst) ? [fst, ...filter(fn, rest)] : | |
filter(fn, rest) |
NewerOlder