Code Monkey home page Code Monkey logo

core's People

Stargazers

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

Watchers

 avatar  avatar  avatar

core's Issues

Visual review/feedback tool

Integrate some sort of tool that allows taking screenshots and annotating them for easier bug or feature request reporting.

This is inspired by GitLab's Visual Review feature.

Improve preview head generation

The head CSS links and scripts are generated in a very simple manner which worked when there were only a few files. Since the introduction of the modern build, this approach became a bit unwieldy.

Please support https

Current scenario:

  • Application uses users location (which is only allowed from secure location, which includes localhost)
  • Dev server is run through træfik reverse proxy with a different host name as localhost so I need to use HTTPS.
  • The websocket url is always ws://, but it should be wss:// if the page is served via HTTPS.
  • To support ws:// and wss:// at the same time, we need a different port for wss:// (like http and https uses different ports). træfik would handle this, so the websocker server might still only listen on port 3001, but the port in the browser needs to be different.

Better documentation capabilities

Currently the styleguide only supports the very minimum for documentation (a title and a short description). An expansion to a full blown markdown “textarea” would be interesting.

Allow changing all aspects of webpacks dev server

The configuration directive devServer in pangolin.config.js suggest, that this would be used by the webpack dev server, but it obviously is not.

Please allow this by e.g. using all settings from store.state.config.devServer as default and override the necessary settings like in dev.js ll. 60 - 71. This way it would be possible to set something like disableHostCheck or `allowedHosts' in the project settings, which I need, because the dev server is accessible through a local development proxy.

Unit Testing for styleguide projects

It's about time to implement a unit testing framework for styleguide project authors to use. The choice will be permanent for this major version (v3.x), so it should be a wise one :)

Disable reload socket in dev build

The dev socket for auto-reload isn't disabled for the dev build. This hasn't been a problem until the recently introduced dev server proxy.

Solution: Disable socket in dev build.

Re-add preview/prototype build

Previous styleguide versions had a preview build mode which generated prototypes without the styleguide CSS and JavaScript.

Re-add icon toolchain

Re-integrate icon toolchain from styleguide v3 but with more options:

  • Copy loose files (Already handled by copy plugin)
  • Create SVG sprite
  • Create icon font (Icon fonts are considered bad practice and shouldn't be used anymore)

MIT license for UI

The licensing should be made clear:

  • Pangolin is MPL
  • Pangolin UI is MIT
  • Output in dist or dev is whatever someone wants

Invalid `.stylelintrc.json` causes `dev` to hang

I just found out, that an invalid .stylelintrc.json causes the dev task to hang. No error is printed, it just hangs. Invalid means in this case a missing comma, at the end of a line. When starting the build task the following error is printed out, which actually somehow points in the right direction.

(node:27) UnhandledPromiseRejectionWarning: JSONError: JSON Error in /build/frontend/.stylelintrc.json:
Unexpected string in JSON at position 796 while parsing '{	"extends": "stylelint-config-sass-gui'
    at module.exports (/build/frontend/node_modules/cosmiconfig/node_modules/parse-json/index.js:26:19)
    at loadJson (/build/frontend/node_modules/cosmiconfig/dist/loaders.js:14:12)
    at Explorer.loadFileContent (/build/frontend/node_modules/cosmiconfig/dist/createExplorer.js:226:12)
    at Promise.resolve.then (/build/frontend/node_modules/cosmiconfig/dist/createExplorer.js:248:21)
    at <anonymous>
(node:27) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:27) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Done in 9.72s.

The command is run inside a docker container with NodeJS v8.11.3 and Yarn 1.6.0.

JS error in frontend after fresh install

A JS error is thrown, when opening the index prototype on localhost:8080, and the frontend is optically broken.

Version: 4.6.0-beta.1
Command: yarn dev
Error message from browser console: Uncaught ReferenceError: webpackJsonp is not defined

Cannot install @pangolin/cli

Hi, I opened a similar ticket an hour ago, but now the issue I get is similar but different

Now the installation runs until the end, however when I try to create a project in the end I still get:

npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor.
npm ERR! Cannot read property 'match' of undefined

Not possible to run dev server inside docker

Due to a hardcoded localhost value for the listening interface of the webpack dev server, it is not possible to run the dev server inside a docker container and expose the port to the host.

The problem could be easily fixed by changing dev.js line 55 to server.listen(serverPort, '0.0.0.0', () => { to make the dev server listen on all interfaces. The websocket server is already listening on all interfaces.

Use Shadow DOM for component pages

The current implementation for resetting component documentation styles isn't that bad (all: initial). But it doesn't make these elements immune to all styling from the author stylesheet.

Iframes are a possible solution, but they are a hassle for sizing. Instead the Shadow DOM looks like a very good alternative. Browser support isn't quite there, but a polyfill is available.

Do not hide error wrong config

Please output any exception that might be thrown when requiring pangolin.config.js in get-config.js ll. 17 - 21. This will make it easier to find issues with an invalid configuration.

Table width in docs section

The table width is limited by the same 35em as the default typography. But tables should be allowed to grow bigger.

Umlauts in prototype names

When having an umlaut in the filename the next character is converted to uppercase. The regex currently used should be extended or replaced to accommodate this case.

Update to webpack 4

The next major release of webpack (v4) includes a lot of performance optimization. It's pretty much essential to upgrade to this version.

Reset hash-link and footer-link CSS

The hash-link beside the component headings and the footer-link CSS inherit styles from the author stylesheet. Add all: initial to reset all styles.

Reduce CLI functionality for this package

We already have a separate CLI package and noone should install this one globally. For easier maintenance, the CLI part of this package should be stripped down to only the necessary commands for standalone execution.

Expand branding

Add full logo to component page's footer. A small link to this styleguide repository may be a good idea as well :)

Revamp UI

The UI is more like a proof of concept than something usable. It lacks the following:

  • Load sidebar and page data from JSON files with AJAX
  • Fuzzy search components (simple search comparable to the old v4 search)
  • Collapsible tree (similar to an editor or file manager sidebar)
  • Conservative space management (the components should be the focus, not the chrome around them)
  • Use Vuetify and especially their treeview

The framework of choice is Vue.js.

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.