From a79ab9c6fbce1283e943f129d660371452a5849f Mon Sep 17 00:00:00 2001 From: Alexander Alemayhu Date: Thu, 17 Sep 2020 13:56:17 +0200 Subject: [PATCH] use latest imba version While at it upgrade all dependencies and move some styles into their respective files. --- package.json | 14 ++++----- src/client.imba | 33 ++++++++++++++++---- src/item-list.imba | 15 +++++++-- src/server.imba | 8 ++--- src/styles/index.css | 74 +------------------------------------------- 5 files changed, 51 insertions(+), 93 deletions(-) diff --git a/package.json b/package.json index e0985fb..38b9a6b 100644 --- a/package.json +++ b/package.json @@ -21,18 +21,18 @@ "homepage": "http://imba.io", "repository": { "type": "git", - "url": "git://github.com/somebee/hello-world-imba.git" + "url": "git://github.com/imba/hello-world-imba.git" }, "license": "MIT", "dependencies": { - "css-loader": "^3.2.0", + "css-loader": "^3.6.0", "express": "^4.17.1", - "imba": "^1.5.2", - "style-loader": "^1.0.0", - "webpack": "^4.39.3", - "webpack-dev-server": "^3.8.0" + "imba": "^2.0.0-alpha.95", + "style-loader": "^1.2.1", + "webpack": "^4.44.1", + "webpack-dev-server": "^3.11.0" }, "devDependencies": { - "webpack-cli": "^3.3.7" + "webpack-cli": "^3.3.12" } } diff --git a/src/client.imba b/src/client.imba index 11b8db8..fe28ebe 100644 --- a/src/client.imba +++ b/src/client.imba @@ -11,16 +11,37 @@ var store = { ] } +css header, footer + flex: 0 0 auto; + display: flex; + flex-direction: row; + justify-content: flex-start; + align-items: center; + padding: 10px 6px; + background: #e8e8e8; + +css .vbox d: flex fld: column jc: center ai: stretch + tag App + + css button -webkit-appearance: none + bg: #4a95eb bg@hover: #3a8eef fs: 13px d: flex + ai: center jc: center bd: 0px + p: 2px 10px rd: 2px c: white + m: 0px 4px fl: 0 0 auto h: 24px + css input d: block p: 0px 12px bg: transparent + bd: none fs: inherit w: 50px h: 24px + fl: 1 1 auto + def addItem - data:items.push(title: data:title) - data:title = "" + data.items.push(title: $title.value) + $title.value = "" def render
- -