...
 
Commits (2)
......@@ -21,12 +21,33 @@ Do not forget to follow our related social media accounts:
## Building
You need OCaml 4.07.1.
First install the dependencies:
# System dependencies
```
$ sudo apt-get install git make curl m4 gcc libgeoip-dev libgmp-dev pkg-config libcurl4-gnutls-dev npm
```
# OPAM install and setup
```
$ sh <(curl -sL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh)
$ opam init -y --bare
```
# Sass install
```
$ sudo npm install -g sass
```
# OCaml dependencies
Install ocaml dependencies using opam from metal directory
```
$ make build-deps
$ eval $(opam env)
```
Then initialize the submodule:
......
......@@ -17,16 +17,18 @@ depends: [
"hex"
"ocurl"
"zarith"
"lwt"
"lwt" { = "4.5.0" }
"menhir"
"ezjsonm"
"num"
"omd"
"ocplib-json-typed"
"js_of_ocaml" { = "3.5.1" }
"js_of_ocaml-lwt" { = "3.5.1" }
"js_of_ocaml-tyxml" { = "3.5.1" }
"js_of_ocaml-ppx" { = "3.5.1" }
"js_of_ocaml-compiler" { = "3.4.0" }
"ocplib-json-typed-bson"
"js_of_ocaml" { = "3.5.2" }
"js_of_ocaml-lwt" { = "3.5.2" }
"js_of_ocaml-tyxml" { = "3.5.2" }
"js_of_ocaml-ppx" { = "3.5.2" }
"js_of_ocaml-compiler" { = "3.5.2" }
"ppx_deriving"
"base64" { >= "3.2.0" }
"cohttp-lwt" {>= "0.99.0" }
......
......@@ -12,9 +12,16 @@
outline: 1px solid var(--light);
}
@font-face {
font-family: 'TH Sarabun New Regular';
font-style: normal;
font-weight: normal;
src: local('TH Sarabun New Regular'), url('../THSarabunNew.woff') format('woff');
}
body {
background-color: whitesmoke;
font-family: 'THSarabunNewRegular';
font-family: 'TH Sarabun New Regular';
width:357px;
height:600px;
display: flex;
......@@ -134,7 +141,7 @@ textarea {
/* history */
#history {
font-family: 'THSarabunNewRegular';
font-family: 'TH Sarabun New Regular';
/* font-weight: bold; */
font-style: normal;
font-size: x-large;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
......@@ -9,9 +9,11 @@
<link href="https://fonts.googleapis.com/css?family=Ubuntu&display=swap" rel="stylesheet">
<!-- Loaded scripts -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="js/jquery.slim.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="fontawesome/solid.min.js" defer></script>
<script src="fontawesome/brands.min.js" defer></script>
<script src="fontawesome/fontawesome.js" defer></script>
<script src="/js/blockies.min.js" async></script>
<script src="metal-home.js" defer></script>
......
This diff is collapsed.
This diff is collapsed.
{
"name": "__MSG_appName__",
"version": "1.2",
"version": "1.3",
"description": "__MSG_appDesc__",
"default_locale": "en",
"permissions": ["activeTab", "storage"],
......@@ -35,6 +35,6 @@
"48": "img/dune-gray-48.png",
"128": "img/dune-gray-128.png"
},
"content_security_policy": "script-src 'self' 'unsafe-eval' https://code.jquery.com/jquery-3.3.1.slim.min.js https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js; object-src 'self'",
"content_security_policy": "script-src 'self' 'wasm-eval'; object-src 'self'",
"manifest_version": 2
}
......@@ -10,9 +10,11 @@
<link href="css/metal-popup.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" media="screen" href="https://fontlibrary.org/face/thsarabun-new" type="text/css"/>
<!-- Loaded scripts -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="js/jquery.slim.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="fontawesome/solid.min.js" defer></script>
<script src="fontawesome/brands.min.js" defer></script>
<script src="fontawesome/fontawesome.js" defer></script>
</head>
<body>
......
......@@ -6,14 +6,15 @@
<link href="css/animista.css" rel="stylesheet" type="text/css">
<link href="css/metal-popup.css" rel="stylesheet" type="text/css">
<link href="css/loading.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" media="screen" href="https://fontlibrary.org/face/thsarabun-new" type="text/css"/>
<!-- Loaded scripts -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="js/jquery.slim.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="/js/qrcode.min.js" defer></script>
<script src="js/qrcode.min.js" defer></script>
<script src="fontawesome/solid.min.js" defer></script>
<script src="fontawesome/brands.min.js" defer></script>
<script src="fontawesome/fontawesome.js" defer></script>
<script src="/js/blockies.min.js" async></script>
<script src="js/blockies.min.js" async></script>
<script src="metal-popup.js"></script>
</head>
......
......@@ -9,8 +9,10 @@
<link href="css/metal-pres.css" rel="stylesheet" type="text/css">
<!-- Loaded scripts -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="js/jquery.slim.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="fontawesome/solid.min.js" defer></script>
<script src="fontawesome/brands.min.js" defer></script>
<script src="fontawesome/fontawesome.js" defer></script>
<script src="metal-pres.js" defer></script>
</head>
......
......@@ -8,9 +8,11 @@
<link href="css/metal-home.css" rel="stylesheet" type="text/css">
<!-- Loaded scripts -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="js/jquery.slim.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="fontawesome/solid.min.js" defer></script>
<script src="fontawesome/brands.min.js" defer></script>
<script src="fontawesome/fontawesome.js" defer></script>
<script src="metal-reset.js" defer></script>
</head>
......
......@@ -8,9 +8,11 @@
<link href="css/metal-home.css" rel="stylesheet" type="text/css">
<!-- Loaded scripts -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="js/jquery.slim.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="fontawesome/solid.min.js" defer></script>
<script src="fontawesome/brands.min.js" defer></script>
<script src="fontawesome/fontawesome.js" defer></script>
<script src="/js/blockies.min.js" async></script>
<script src="metal-settings.js" defer></script>
......
......@@ -8,9 +8,11 @@
<link href="css/metal-home.css" rel="stylesheet" type="text/css">
<!-- Loaded scripts -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="js/jquery.slim.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="fontawesome/solid.min.js" defer></script>
<script src="fontawesome/brands.min.js" defer></script>
<script src="fontawesome/fontawesome.js" defer></script>
<script src="metal-start.js" defer></script>
</head>
......
......@@ -8,8 +8,8 @@
<link href="css/metal-home.css" rel="stylesheet" type="text/css">
<!-- Loaded scripts -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="js/jquery.slim.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="metal-unlock.js" defer></script>
</head>
......