thematters / ipns-site-generator Goto Github PK
View Code? Open in Web Editor NEWMatters Site Generator for IPFS/IPNS
Home Page: https://www.npmjs.com/package/@matters/ipns-site-generator
Matters Site Generator for IPFS/IPNS
Home Page: https://www.npmjs.com/package/@matters/ipns-site-generator
References:
During assembling html bundle, image and audio assets are downloaded and included in bundle. For security and cost, there should be a check on file size or domain.
via IPNS entry to each article is no problem is link back to top IPNS entry,
but if via each single article's IPFS Dialog entry:
https://ipfs.filebase.io/ipfs/QmcZwZLrZbp6YiHSpDJUSfF4kUdk4zCZCrFEExWJSMC5Pv/
the top links are not linking back:
This package is used to create and update personal websites on IPNS. When publishing a new article, it creates a separate directory with HTML, JS, CSS, and media files, attaches it to the IPNS directory, and updates the RSS feed, JSON feed, and index.html
.
The final API could be:
f(Activity: any, IPFSNodeAddress: string, IPNSKeyPair: any, NewDirectory: bool) -> UpdatedIPNSRecord: string
ActivityPub integration by Distributed Press: hyphacoop/distributed-press-organizing#80 It would be ideal if both features/modules share the same API.
TODO
We need to add an analytic script to HTML files on IPFS in order to know the page views.
https://static.matters.news/analytics.js
. Currently, it's an obsolete script using segment, we should update it to firebase.
screen_view
, but we might want to use page_view
for consistency with matters.newsmatters-public-files
and mapped to https://static.matters.news
already. The updated script should be uploaded here and tested on firebase console to see if it works.[discussion] can be modified from โฃ(renamed as matters-content-store?)
Describe the bug
two tests throw Timeout - Async callback was not invoked within the 5000 ms timeout specified by jest.setTimeout.Timeout - Async callback was not invoked within the 5000 ms timeout specified by jest.setTimeout.Error
To Reproduce
Steps to reproduce the behavior:
npm ci
or npm i
npm run test
Expected behavior
test pass without errors
Desktop (please complete the following information):
Additional context
I tried upgrading jest family to v28, but tests still failed with same errors after work out other problems brought by upgrade
To avoid unnecessary changes to codebase, we'll keep most of publishing flow the same but revise content published to IPFS for Circle article:
TBD:
IPFS content format with link to circle.
matters.news
-> matters.town
;matters-server
;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.