Giter Club home page Giter Club logo

shards-dashboard-react's People

Contributors

hisk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shards-dashboard-react's Issues

Potential Security Issue

Hello,

We have received a vulnerability disclosure against this repository. I have tried finding a contactable e-mail and a security policy for this repository, but couldn't find one.

If you could provide me with this information or would like me to provide the information on this issue, let me know.

Otherwise, you can take a look at the advisory here. It is private to the discloser and maintainers only.

If you have any questions, let me know.

  • Jamie from huntr.dev 🍰

missiing

I think there's a missing ccs file or the path is not correct
Module not found: Error: Can't resolve './shards-dashboard/styles/shards-dashboards.1.1.0.min.css' in './src'

Build results in a blank screen

After cloning the repo, making the changes on .gitmodules told by @design-revision here and npm installing the dependencies the build results in a blank screen:

The console output for the build is:

npm run build

> [email protected] build /Users/pedneri1/Desktop/shards-dashboard-react
> cross-env REACT_APP_BASENAME=/demo/shards-dashboard-lite-react react-scripts build

Creating an optimized production build...
Compiled successfully.

File sizes after gzip:

  251.8 KB  build/static/js/1.6fe397d4.chunk.js
  26.88 KB  build/static/js/main.75140f8f.chunk.js
  25.17 KB  build/static/css/1.db30c455.chunk.css
  18.41 KB  build/static/css/main.491f31e8.chunk.css
  763 B     build/static/js/runtime~main.4a686d48.js

The project was built assuming it is hosted at ./.
You can control this with the homepage field in your package.json.

The build folder is ready to be deployed.

Find out more about deployment here:

  http://bit.ly/CRA-deploy

the build folder has these files:

Captura de Tela 2019-10-20 às 17 40 09

The generated index.html looks like this:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <link rel="shortcut icon" href="./favicon.ico" />
    <meta
      name="viewport"
      content="width=device-width,initial-scale=1,shrink-to-fit=no"
    />
    <meta name="theme-color" content="#000000" />
    <link
      href="https://fonts.googleapis.com/icon?family=Material+Icons"
      rel="stylesheet"
    />
    <link
      href="https://use.fontawesome.com/releases/v5.0.6/css/all.css"
      rel="stylesheet"
    />
    <link rel="manifest" href="./manifest.json" />
    <title>Shards Dashboard Lite React</title>
    <link href="./static/css/1.db30c455.chunk.css" rel="stylesheet" />
    <link href="./static/css/main.491f31e8.chunk.css" rel="stylesheet" />
  </head>
  <body>
    <noscript>You need to enable JavaScript to run this app.</noscript>
    <div id="root"></div>
    <script>
      !(function(l) {
        function e(e) {
          for (
            var r, t, n = e[0], o = e[1], u = e[2], f = 0, i = [];
            f < n.length;
            f++
          )
            (t = n[f]), p[t] && i.push(p[t][0]), (p[t] = 0);
          for (r in o)
            Object.prototype.hasOwnProperty.call(o, r) && (l[r] = o[r]);
          for (s && s(e); i.length; ) i.shift()();
          return c.push.apply(c, u || []), a();
        }
        function a() {
          for (var e, r = 0; r < c.length; r++) {
            for (var t = c[r], n = !0, o = 1; o < t.length; o++) {
              var u = t[o];
              0 !== p[u] && (n = !1);
            }
            n && (c.splice(r--, 1), (e = f((f.s = t[0]))));
          }
          return e;
        }
        var t = {},
          p = { 2: 0 },
          c = [];
        function f(e) {
          if (t[e]) return t[e].exports;
          var r = (t[e] = { i: e, l: !1, exports: {} });
          return l[e].call(r.exports, r, r.exports, f), (r.l = !0), r.exports;
        }
        (f.m = l),
          (f.c = t),
          (f.d = function(e, r, t) {
            f.o(e, r) ||
              Object.defineProperty(e, r, { enumerable: !0, get: t });
          }),
          (f.r = function(e) {
            "undefined" != typeof Symbol &&
              Symbol.toStringTag &&
              Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }),
              Object.defineProperty(e, "__esModule", { value: !0 });
          }),
          (f.t = function(r, e) {
            if ((1 & e && (r = f(r)), 8 & e)) return r;
            if (4 & e && "object" == typeof r && r && r.__esModule) return r;
            var t = Object.create(null);
            if (
              (f.r(t),
              Object.defineProperty(t, "default", { enumerable: !0, value: r }),
              2 & e && "string" != typeof r)
            )
              for (var n in r)
                f.d(
                  t,
                  n,
                  function(e) {
                    return r[e];
                  }.bind(null, n)
                );
            return t;
          }),
          (f.n = function(e) {
            var r =
              e && e.__esModule
                ? function() {
                    return e.default;
                  }
                : function() {
                    return e;
                  };
            return f.d(r, "a", r), r;
          }),
          (f.o = function(e, r) {
            return Object.prototype.hasOwnProperty.call(e, r);
          }),
          (f.p = "./");
        var r = (window.webpackJsonp = window.webpackJsonp || []),
          n = r.push.bind(r);
        (r.push = e), (r = r.slice());
        for (var o = 0; o < r.length; o++) e(r[o]);
        var s = n;
        a();
      })([]);</script
    ><script src="./static/js/1.6fe397d4.chunk.js"></script
    ><script src="./static/js/main.75140f8f.chunk.js"></script>
  </body>
</html>

And the Chrome console output is empty. What is going on ? Am I doing something wrong ?

Failed to compile on running the start command

I cloned this repo and followed the steps to start the local development server.
The very same moment the app crashes saying

`./src/App.js
Module not found: Can't resolve './shards-dashboard/styles/shards-dashboards.1.1.0.min.css'


Screen Shot 2019-04-17 at 3 34 48 PM

Vulnerabilities

Running npm audit: found 70 vulnerabilities (63 low, 1 moderate, 6 high)

deploy on server blank page no error

I didn't find any manuals and errors
I've implemented it on my server with the sudo npm run-script build

I have set my package json

{
  "name": "shards-dashboard-lite-react",
  "version": "1.0.0",
  "private": true,
  "homepage": "http://xx.xx.xx.xx/apps/spk/",
  "dependencies": {
...................................
..............................

i have try to with
"homepage": "./",

still blank page and no error .

but when I try to implement with netfliy, it's ok (no problem, no error)

i have try with other project react without template (defaut react) build and deploy to my server ,it's ok (no problem, no error)

http://47.254.248.35/apps/spk/ // shard dashboard
http://47.254.248.35/apps/books/ // default

thanks in advance

Dark theme

Are there plans to include an option to switch to a dark theme?

adding "." for images when building using npm run build

hey !
I have a problem with images when I try and build the application using the react build (npm run build) : in the url of every image I get an extra "." at the start so it becomes "./static/ ...." instead of "/static/...." adding that point makes image not resolved.

how can I fix this ?

Some react elements like Button don't allow for state changing.

I encountered a problem with some elements not accepting the state change in the onClick event.

example :

<Button onClick={(event)=>{
     this.login(event)
 }}>Log In</Button>
 login(e) {

    e.preventDefault();
    this.setState({
      isLoading:true
    });
    // Here, we call an external AuthService. We'll create it in the next step
    Auth.login(this.state.user, this.state.password)
      .catch(function (err) {
        console.log("Error logging in", err);
      }).finally(()=>{
      this.setState({
        isLoading:true
      });
    });
  }

the setState call on first doesn't happen. no matter what happens it doesn't change the state to true. It even passes when using callback function in the setState method.
This happened multiple times and using other components did fix the problem.

is this a bug ? how can I fix it ?

"Hamburger" Menu Button Shows When Menu Tray is Open

Hello! Thanks for sharing this on Reddit -- looks superb!

I was playing around with the responsive design and noticed that your media queries look slightly off to me! Both the hamburger menu in the top right corner and the left-hand menu tray show with screen widths around 800-900px, but the button doesn't appear to serve any function in this state.

I just want to make you aware. Thanks again!
screen shot 2019-02-14 at 6 51 27 pm

Configuration "homepage": "./" in package.json

This configuration makes me have some troubles when deploying one react app to s3. It was not possible to access to the /login/ due to this configuration. I removed it and now it is ok. My suggestion is to remove it from the template.

Invalid prop `tag` supplied to `NavLink`

There is a warning because of using a tag prop on the NavLink component provided by the shards-react package in this project.
Here is the warning showing on the console:

Warning: Failed prop type: Invalid prop `tag` supplied to `NavLink`.
    in NavLink (at SidebarNavItem.js:10)

is this project still maintainable? I get error after error installing from scratch

first I got an error for the missing ....css.mini (I find that, copy and paste).

now I get:
Module not found: Can't resolve 'shards-react' in 'C:\Users\Ohad\workSpace\AllDashboardReact\shards-dashboard-react\src\components\add-new-post'

and a while after I get:
Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat 'C:\DumpStack.log.tmp'

is there a chance this project doesn't supported by newer versions of node/react?

Reload Issue

I have used free version from git repo and when i host it on firebase it shows path not found while reloading any page

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.