Giter Club home page Giter Club logo

xkr-website's Issues

Implement a backup Hugin API

We need a backup Cache API so we don't face down time on the website such as Novastack Cache API. Currently it gives problem on website.

Mining config generator doesn't work properly

The mining config generator adds newpool.pw which doesn't have XKR.

Here's the JS I used on the old website for reference:

    var dataStr = "data:text/json;charset=utf-8," + encodeURIComponent(JSON.stringify(exportObj));
    var downloadAnchorNode = document.createElement('a');
    downloadAnchorNode.setAttribute("href", dataStr);
    downloadAnchorNode.setAttribute("download", exportName + ".json");
    document.body.appendChild(downloadAnchorNode); // required for firefox
    downloadAnchorNode.click();
    downloadAnchorNode.remove();
}

function shuffle(array) {
    array.sort(() => Math.random() - 0.5);
    return (array);
}

function findPools() {
    //Hey dont mind this, its just a rlly jank thing for now, hard coded ig

    let listOfPools = [
        "pool.kryptokrona.se:3333",
        "pool2.kryptokrona.se:3333",
        "swepool.org:3333"
    ];
    return shuffle(listOfPools);
}

jQuery(document).ready(function ($) {
    // Your code in here


    jQuery('.generate-address-button').click(function () {
        let thePool = findPools();
        let poolList = `"pools": [`
        for (let i = 0; i < thePool.length; i++) {
            let temp = `{
                "algo": "cn-pico",
                "coin": null,
                "url": "` + thePool[i] + `",
                "user": "` + jQuery('.generate-address-field').val() + `",
                "pass": "x",
                "rig-id": null,
                "nicehash": false,
                "keepalive": false,
                "enabled": true,
                "tls": false,
                "tls-fingerprint": null,
                "daemon": false,
                "socks5": null,
                "self-select": null
            }`;
            if (i + 1 !== thePool.length) {
                temp += `,`;
            }
            poolList += temp;

        }
        poolList += `],`;


        let config_file_json = JSON.parse(`
	{
    "api": {
        "id": null,
        "worker-id": null
    },
    "http": {
        "enabled": false,
        "host": "127.0.0.1",
        "port": 0,
        "access-token": null,
        "restricted": true
    },
    "autosave": true,
    "background": false,
    "colors": true,
    "randomx": {
        "init": -1,
        "mode": "auto",
        "1gb-pages": false,
        "rdmsr": true,
        "wrmsr": true,
        "numa": true
    },
    "cpu": {
        "enabled": true,
        "huge-pages": true,
        "hw-aes": null,
        "priority": null,
        "memory-pool": false,
        "yield": true,
        "asm": true,
        "argon2-impl": null,
        "astrobwt-max-size": 550,
        "astrobwt-avx2": false,
        "argon2": [0, 1, 2, 3],
        "astrobwt": [0, 1, 2, 3],
        "cn": [
            [1, 0]
        ],
        "cn-heavy": [
            [1, 0]
        ],
        "cn-lite": [
            [1, 0],
            [1, 2]
        ],
        "cn-pico": [
            [2, 0],
            [2, 1],
            [2, 2],
            [2, 3]
        ],
        "rx": [0],
        "rx/arq": [0, 1, 2, 3],
        "rx/wow": [0, 2],
        "cn/0": false,
        "cn-lite/0": false,
        "rx/keva": "rx/wow"
    },
    "opencl": {
        "enabled": true,
        "cache": true,
        "loader": null,
        "platform": "AMD",
        "adl": true,
        "cn/0": false,
        "cn-lite/0": false
    },
    "cuda": {
        "enabled": true,
        "loader": null,
        "nvml": true,
        "cn/0": false,
        "cn-lite/0": false
    },
    "donate-level": 5,
    "donate-over-proxy": 1,
    "log-file": null,
    ` + poolList.valueOf() + `
    "print-time": 60,
    "health-print-time": 60,
    "retries": 5,
    "retry-pause": 5,
    "syslog": false,
    "tls": {
        "enabled": false,
        "protocols": null,
        "cert": null,
        "cert_key": null,
        "ciphers": null,
        "ciphersuites": null,
        "dhparam": null
    },
    "user-agent": null,
    "verbose": 0,
    "watch": true
}`);

        downloadObjectAsJson(config_file_json, 'config');


    })

});

The listOfPools variable could also use an update.

Change Cache to API on website

We need to change the domain where it fetches the Hugin data to api.hugin.chat instead of cache.hugin.chat as well as change the failure message: "Cache not connected 😭" to "API not connected 😭".

Adding crypto payment for shop

I don't know how you implemented the crypto payments, but it would be nice to have a chance to pay via crypto OR by stripe in the swag shop. https://store.kryptokrona.org/

The payment should be with XKR, BTC, DOGE and XMR. Litecoin is not so much used, and with Ethereum, the gas prices are a little bit high for the "average" person to use.

Issue with Footer Section - Hovering Text Visibility

Description:
After the recent update, I've encountered an issue with the footer section on the website. When hovering over certain elements, the text becomes invisible due to the black background color, and it seems like the hovering effect is also black.

Steps to Reproduce:

  1. Open the website in any modern web browser.
  2. Scroll down to the footer section.
  3. Hover over the elements in the footer.

Expected Behavior:
The text should be visible when hovering over the footer elements, and the hovering effect should be appropriately styled.

Actual Behavior:
The text becomes invisible, and it appears that the hovering effect is also black, making it difficult to read the content.

Screenshot :
image

Build a mining calculator

On /mining it would be nice to have a mining calculator together with the config generator to calc profits.

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.