GithubHelp home page GithubHelp logo

eclipse-thingweb / website Goto Github PK

View Code? Open in Web Editor NEW
4.0 10.0 10.0 57.55 MB

Homepage for Eclipse Thingweb, thingweb.io

Home Page: https://thingweb.io

HTML 18.07% CSS 53.00% JavaScript 28.93%
iot web web-of-things wot

website's People

Contributors

charifmahmoudi avatar danielpeintner avatar egekorkan avatar fadysalama avatar fatadel avatar mkovatsc avatar relu91 avatar sebastiankb avatar sergiocasceb avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

website's Issues

Make GitHub Link more prominent

@sebastiankb feels like it is difficult to find/see the GitHub Link (at the moment present in footer and prose).
How can we improve the situation? Have its "own" navigation item?

@egekorkan others opinions?

We plan to rework the structure & content of the Website anyway..

[enhancement] Add PR review bot

Similar to the way w3c repositories generate a static page for every PR, it would be nice to add a bot that does this for this repository. This might however need the involvement of someone from the Eclipse Foundation.

Rework the "News" page

Our news page is regularly out-of-date.

Having said that, I don't think we should any longer maintain our own news page. We could simply point to other resources like Mastodon/X, Stackoverflow and WoT Wiki pages instead.

OR

remove the page all together.

Any thoughts/ideas/proposals?

[Coffee Machine] Wrong use of resolve in uriVariables

In the coffee machine tutorial, there is the following code:

    thing.setPropertyReadHandler('availableResourceLevel', (options) => {

        // Check if uriVariables are provided
        if (options && typeof options === 'object' && 'uriVariables' in options) {
            const uriVariables: any = options['uriVariables'];
            if ('id' in uriVariables) {
                return thing.readProperty('allAvailableResources').then((resources) => {
                    const id = uriVariables['id'];
                    return new Promise((resolve, reject) => {
                        resolve(resources[id]);
                    });
                });
            }
        }
        return new Promise((resolve, reject) => {
            resolve('Please specify id variable as uriVariables.');
        });
    });

The first part is completely fine but the last lines on returning a Promise will actually make the Client think that everything is OK since in HTTP it would map to 200 status code. The correct way would be to return an HTTP 400 Bad Request but this is not possible at the moment (See this issue on node-wot: eclipse-thingweb/node-wot#140). For now, this should at least be a reject instead of a resolve.

Could you correct this @fatadel ?

Improve the get involved page

It seems that the get involved page is the second most viewed page on our website. It is already good but we could add for example links to our social accounts (Discord and Telegram) to get some traffic also there.

Add .gitignore

So the title is pretty self-explaining. If approved I can add it myself.

Implementation of a cookie/consent button for consent management

Once the consent banner is hidden it might be difficult for users to find the "Manage Cookies" link in the footer. Anyhow, I don't have a good alternative other than creating a dedicated cookie button in the bottom right corner or so... not sure if this might work better.

An example what I mean can be seen on
https://www.cookieyes.com/documentation/change-cookie-consent-using-cookieyes/

Originally posted by @danielpeintner in #74 (comment)

Coffee Machine Tutorial has misleading parts

@fatadel Your coffee machine tutorial has some misleading parts.

  1. In the event affordances, you say:
// Set up a handler for outOfResource event     

thing.subscribeEvent('outOfResource', (data) => {          
// Notify an "admin" when the event is emitted         
// (the notify function here simply logs a message to the console)
notify('[email protected]', `outOfResource event: ${data}`);     
});

This is not really a handler for the events since events do not have a handler like properties and actions do, you just emit them. By the way you emit them in the part of Action Affordances anyways, so you can call the notify function in there and not create another listener for this. I am guessing that you did this to be symmetrical to other affordances but I think that we should not encourage this. The text gives the impression that there is some real event handling happening.

  1. You have a Property Affordance called allAvailableResources. However, node-wot automatically generates handlers for meta interactions like readallproperties. Were you aware of this or is this property there for another reason?

3.Also, there is no name displayed on the page/tab. Similarly, the hands-on page displays thingweb-thingweb. Could you take a look at it @danielpeintner ?

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.