logux / logux.org Goto Github PK
View Code? Open in Web Editor NEWLogux website
Home Page: https://logux.org/
License: MIT License
Logux website
Home Page: https://logux.org/
License: MIT License
instead of copying code highlighting output HTML into Pug template,
https://github.com/logux/logux.io/blob/master/src/uikit.pug#L162
we can use Pug filters like this:
:md
```js
const { Server } = require('@logux/server')
function usersReducers (state = { }, action) {
if (action.type === 'user/name') {
return { ...state, name: action.name }
} else {
return state
}
}
server.auth((userId, token) => {
// Allow only local users until we will have a proper authentication
return process.env.NODE_ENV === 'development'
})
to do this, we have to add custom Pug filter and render Markdown using the same way it renders markdown files like this
I'm trying to run static server (not uikit.html) locally with nginx, cuz i detect nginx.conf file.
My directories structures:
projects/
logux-*
logux.io
Root nginx config have:
# ...
listen 8080;
server_name localhost;
# ....
location / {
root "C:\projects";
index index.html index.htm;
}
# ...
And http://localhost:8080/logux.io/ cannot reachable
Which steps i miss?
I'm on windows 10, but can switch to linux.
Thanks
When I see Client Example, there is a problem with JSX highlighting:
With github
theme in 9.17.1
version it should look like this:
I created a Codepen sandbox to see how it should work.
I checked out what version of Highlight.js is used in project and it's latest one:
➜ cat node_modules/highlight.js/package.json | grep version
"version": "9.17.1",
For now, we have this:
@supports (backdrop-filter: blur(15px)) {
@media (width < 1024px) {
.layout_aside {
background: transparent;
backdrop-filter: blur(15px);
}
}
}
But backdrop-filter
works on Mobile Safari and Safari on macOS, it should be prefixed:
@supports ((-webkit-backdrop-filter: blur(15px)) or (backdrop-filter: blur(15px))) {
@media (width < 1024px) {
.layout_aside {
background: transparent;
-webkit-backdrop-filter: blur(15px);
backdrop-filter: blur(15px);
}
}
}
Hover a focus states needs to be adjusted for case, when title has code inside:
https://logux.io/guide/concepts/subscription/#connect
Amazing website!
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.