Git Product home page Git Product logo

domain's People

Contributors

aral avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

domain's Issues

Error 500 on clean setup run

With main branch NodeKit on a new machine, when hitting https://localhost:

TypeError: Cannot read properties of undefined (reading 'payment')
    at Object.node_script_default [as nodeScriptHandler] (vm:module(0):5:29)
    at Object.handler [as _handler] (file:///var/home/aral/Projects/nodekit-main/index.js:525:35)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object. (file:///var/home/aral/Projects/nodekit-main/index.js:428:16)
    at async Array. (file:///var/home/aral/Projects/nodekit-main/node_modules/tinyws/dist/index.js:1:352)

Place setup process: add “create secrets” step

The place setup process includes the creation of key material from the person’s Diceware passphrase. This takes place on the client and isn’t immediate so we should add a progress indicator for it, as a step in the setup process modal.

Admin: remove Site customisation tab

The Site customisation tab would enable Small Web Hosts to create a custom header/footer as well as terms and conditions and privacy policy for their sites.

On further thought, I don’t think this is a good idea:

  • The terms and conditions is where we can declare the guidelines for what is acceptable and what is not (e.g., hate speech, etc.) and is an important instrument in ensuring that Basil is not used to host fascist communities, etc. Of course, they can fork the software and customise it but there’s no reason to make it easy for them. Also, if baked in, this is a document that can evolve and, if necessary, have conditionals attached (e.g., based on jurisdiction … for example, German organisations will need an impressum, etc.)

  • Similarly, the Privacy Policy should be based on what Basil does and does not need to be modified. It will be automatically generated based on the service providers set up in the administration panel.

  • The design of the index page will be iconic of the Small Web – signifying its devotion to radical simplicity. As such, allowing it to be customised is not desirable. We don’t want to create MySpace 2.0.

It’s better to start out rigid with this and, if there are valid requests from the Small Web Host community (if, one day, we have a Small Web Host community, that is), we can add conditions, etc., based on real-world needs.

Admin: add Public Suffix List panel

The domain used for a Small Web Host must be on the Public Suffix List (PSL).

For public hosts (currently, those with payments types set to Token or Stripe), Basil will enforce this and not allow the set up of places otherwise for security reasons (cookies, etc.)

This is not a requirement for private hosts (payment type set to None).

Tasks

  • Add tab for PSL to admin.
  • Add instructions in tab for how to add your domain to the public suffix list.
  • Enforce inclusion in PSL for public hosts (private instances are exempt).

References

Error on npm run dev “Cannot find module '../../.db/settings.cjs'”

I’ve just installed Basil on my machine, npm install went fine, just ran npm run dev and got this error.

   ❌    ❨site.js❩ Error: Error: Cannot find module '../../.db/settings.cjs'
Require stack:
- /Users/laura/Repos/basil/.dynamic/.https/config.cjs
- /usr/local/bin/index.js
- /usr/local/bin/bin/lib/ensure.js
- /usr/local/bin/bin/lib/sync.js
- /usr/local/bin/bin/commands/serve.js
- /usr/local/bin/bin/site.js

Error (NodeKit major refactor branch) on hitting /admin on fresh install

[LOADER] Compiling /admin/setup/payment/Stripe/Mode.component
RangeError [ERR_HTTP_INVALID_STATUS_CODE]: Invalid status code: ERR_HTTP_INVALID_STATUS_CODE
    at __node_internal_captureLargerStackTrace (node:internal/errors:466:5)
    at new NodeError (node:internal/errors:377:5)
    at ServerResponse.writeHead (node:_http_server:274:11)
    at ServerResponse._implicitHeader (node:_http_server:265:8)
    at write_ (node:_http_outgoing:766:9)
    at ServerResponse.end (node:_http_outgoing:855:5)
    at Polka.onError (file:///var/home/aral/Projects/nodekit/src/production/Server.js:77:18)
    at next (file:///var/home/aral/Projects/nodekit/node_modules/polka/build.mjs:83:38) {
  code: 'ERR_HTTP_INVALID_STATUS_CODE'

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.