Code Monkey home page Code Monkey logo

emobu's Introduction

emobu's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

kachick

emobu's Issues

Replace Node.js with Deno

Why?

Managing lots of configs around linters and dealing with the Node.js ecosystem is a pain for me.

How

Tried 3 times

#317
#318
#360 is a way, but dropping Vite does not make better developer experience for now.

Deno blocks non JS/TS importing is a reason. How about denoland/deno#11961 (comment) workaround?

Replace duration handler with special HTML elements if available

emobu/src/Main.elm

Lines 526 to 560 in d192a47

newIntervalFields : Model -> Html Msg
newIntervalFields model =
let
( hoursOptions, minutesOptions, secondsOptions ) =
MobSession.newIntervalOptions model.intervalSeconds
optionsFormatter =
List.map
(\( val, selected ) -> option [ Attr.value val, Attr.selected selected ] [ text val ])
in
div [ Attr.class "interval-input" ]
[ text "/"
, space
, select
[ Attr.class "value-select"
, onInput (UpdateInterval MobSession.Hour)
, Attr.disabled model.mobbing
]
(hoursOptions |> optionsFormatter)
, text ":"
, select
[ Attr.class "value-select"
, onInput (UpdateInterval MobSession.Min)
, Attr.disabled model.mobbing
]
(minutesOptions |> optionsFormatter)
, text ":"
, select
[ Attr.class "value-select"
, onInput (UpdateInterval MobSession.Sec)
, Attr.disabled model.mobbing
]
(secondsOptions |> optionsFormatter)
]

whatwg/html#5488 ๐Ÿ™

Prefer nix flake

emobu/default.nix

Lines 1 to 10 in d192a47

{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/f2406198ea0e4e37d4380d0e20336c575b8f8ef9.tar.gz") { } }:
pkgs.mkShell {
buildInputs = [
pkgs.nil
pkgs.nixpkgs-fmt
pkgs.nodejs_20
pkgs.dprint
];
}

"enabledManagers": ["nix"],

Then the definition will be updated by renovatebot

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

nix
flake.nix
  • nixpkgs nixos-unstable

  • Check this box to trigger a request for Renovate to run again on this repository

regex for input username validation is broken

I found that when using Mozilla.Firefox.DeveloperEdition and the developer console
It alerts following warnings

Unable to check <input pattern='[a-zA-Z0-9-]{1,39}'> because the pattern is not a valid regexp: character class escape cannot be used in class range in regular expression

Actually inputting !@# will be accepted.

Remove avatarUrl from storage

It always can be generated from username. However currently persisted and often shows fallback images, then it is hard to refresh behaviors by UI.

So I would remove the persisted logics.
And having an idea, providing storage clear button might be better...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.