Hey ๐ I'm software engineer, doing web UIs at work, 3D graphics programming and Blender hobbyist, diggin LLMs, but not too much
If you like what I do, consider supporting my work via donation
ClojureScript + Rum codebase containing real world examples
Implement Create/Edit article view as per spec
Implement profile view as per spec
Is there a demo site somewhere? If you paste me a link I submit a PR for the readme.
Thanks
RealWorld frontend spec requires the app to have at least one unit test for demonstration purpose. There could be tests for controllers at least.
Implement settings view as per spec
Current Router code is outdated, so routing could be rewritten according to your last suggestion.
The current pagination is not working. Fix pagination #22
$ rlwrap lein figwheel dev
Figwheel: Cutting some fruit, just a sec ...
Figwheel: Validating the configuration found in project.clj
Figwheel: Configuration Valid ;)
Figwheel: Starting server at http://0.0.0.0:3449
Figwheel: Watching build - dev
Compiling "resources/public/js/compiled/conduit.js" from ["src"]...
Failed to compile "resources/public/js/compiled/conduit.js" in 3.862 seconds.
---- Could not Analyze src/conduit/components/root.cljs ----
Assert failed: Circular dependency detected, conduit.components.root -> conduit.components.home -> conduit.core -> conduit.components.root
(every? (fn* [p1__2308#] (not (contains? *cljs-dep-set* p1__2308#))) deps)
---- Analysis Error : Please see src/conduit/components/root.cljs ----
Figwheel: initial compile failed - outputting temporary helper application to resources/public/js/compiled/conduit.js
To fix this from core.clj
move the routes
def, which is i.e.:
(def routes
["/" [["" :home]
[["page/" :page] :home]
[["tag/" :id] [["" :tag]
[["/page/" :page] :tag]]]
[["article/" :id] :article]
["editor" [["" :editor]
[["/" :slug] :editor]]]
["login" :login]
["register" :register]]])
to a separate namespace conduit.routes
, as follows:
(ns conduit.routes)
(def routes
["/" [["" :home]
[["page/" :page] :home]
[["tag/" :id] [["" :tag]
[["/page/" :page] :tag]]]
[["article/" :id] :article]
["editor" [["" :editor]
[["/" :slug] :editor]]]
["login" :login]
["register" :register]]])
and change core.clj
and components/home.clj
requires as follows:
(ns conduit.core
(:require [rum.core :as rum]
[citrus.core :as citrus]
[goog.dom :as dom]
[conduit.effects :as effects]
[conduit.routes :refer [routes]]
[conduit.router :as router]
[conduit.controllers.articles :as articles]
[conduit.controllers.tags :as tags]
[conduit.controllers.tag-articles :as tag-articles]
[conduit.controllers.article :as article]
[conduit.controllers.comments :as comments]
[conduit.controllers.router :as router-controller]
[conduit.controllers.user :as user]
[conduit.controllers.profile :as profile]
[conduit.components.root :refer [Root]]
[conduit.components.home :as home]
[conduit.components.article :refer [Article]]))
(ns conduit.components.home
(:require [rum.core :as rum]
[citrus.core :as citrus]
[bidi.bidi :as bidi]
[conduit.mixins :as mixins]
[conduit.routes :refer [routes]]
[conduit.components.grid :as grid]
[conduit.components.base :as base]))
to fix (seems to work) cyclic dependency issue.
I'd like to implement auth as a next part. This covers:
I suppose this functionality will be covered by several PRs.
@lavgl could you please move the mixin from conduit.components.router
into conduit.mixins
ns as we discussed it before?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.