-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 96756b0
Showing
12 changed files
with
230 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
* { | ||
box-sizing: border-box; | ||
|
||
--gutter: 1rem; | ||
} | ||
|
||
body, html { | ||
height: 100%; | ||
width: 100%; | ||
|
||
margin: 0; | ||
|
||
font-family: sans-serif; | ||
} | ||
|
||
.btn { | ||
display: inline-flex; | ||
padding: 0.275rem 0.5rem; | ||
font-size: 1rem; | ||
font-weight: 400; | ||
line-height: 1.3; | ||
color: #333; | ||
background: #EEE; | ||
border: 1px solid #EEE; | ||
border-radius: .5em; | ||
|
||
cursor: pointer; | ||
} | ||
|
||
a.btn { | ||
text-decoration: none; | ||
} | ||
|
||
.btn:hover, | ||
.btn:focus { | ||
background: #DFDFDF; | ||
} | ||
|
||
.btn-none { | ||
background: transparent; | ||
border: 1px solid transparent; | ||
} | ||
|
||
.hcontainer, | ||
.vcontainer { | ||
display: flex; | ||
align-self: stretch; | ||
flex: 1; | ||
|
||
overflow: hidden; | ||
} | ||
|
||
.vcontainer { | ||
flex-direction: column; | ||
} | ||
|
||
.hcontainer { | ||
flex-direction: row; | ||
} | ||
|
||
.container { | ||
margin: calc(var(--gutter) * .5); | ||
display: flex; | ||
flex-direction: column; | ||
flex: 1; | ||
overflow: hidden; | ||
} | ||
|
||
.container .content { | ||
flex: 1; | ||
align-self: stretch; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>Try out and learn DMN FEEL - FEEL Playground</title> | ||
|
||
<meta charset="UTF-8"> | ||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="description" content="An interactive app to try out and learn the DMN FEEL language. Evaluate complex DMN FEEL expressions, unary tests, and built-in functions."> | ||
<meta name="theme-color" content="#4682b4"> | ||
|
||
<link rel="icon" href="favicon.png" /> | ||
<link rel="apple-touch-icon" href="apple-touch-icon.png" /> | ||
|
||
<meta name="og:title" content="DMN FEEL Playground" /> | ||
<meta name="og:image" content="https://nikku.github.io/feel-playground/preview.png" /> | ||
<meta name="og:url" content="https://nikku.github.io/feel-playground/" /> | ||
|
||
<link rel="manifest" href="manifest.json" /> | ||
|
||
<link rel="stylesheet" href="global.css" /> | ||
<link rel="stylesheet" href="bundle.css" /> | ||
</head> | ||
<body class="vcontainer"> | ||
|
||
<script> | ||
if ('serviceWorker' in navigator) { | ||
|
||
function triggerReload() { | ||
window.location.reload(); | ||
} | ||
|
||
window.addEventListener('load', () => { | ||
navigator.serviceWorker.register('service-worker.js').catch((err) => { | ||
console.warn('Failed to register service worker', err); | ||
}); | ||
|
||
navigator.serviceWorker.addEventListener('message', event => { | ||
if (event.data.message === 'resource.changed') { | ||
console.log('Resource changed', event.data.url); | ||
|
||
triggerReload(); | ||
} | ||
}); | ||
}); | ||
} | ||
</script> | ||
|
||
<script src="bundle.js"></script> | ||
|
||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"short_name": "FEEL Playground", | ||
"name": "FEEL Playground", | ||
"icons": [ | ||
{ | ||
"src": "./logo-192.png", | ||
"type": "image/png", | ||
"sizes": "192x192" | ||
}, | ||
{ | ||
"src": "./logo-512.png", | ||
"type": "image/png", | ||
"sizes": "512x512" | ||
} | ||
], | ||
"start_url": ".", | ||
"background_color": "#4682b4", | ||
"display": "standalone", | ||
"theme_color": "#4682b4" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.