Git Product home page Git Product logo

sourcecode-front's People

Contributors

dependabot[bot] avatar dewita avatar jy95 avatar

Watchers

 avatar  avatar

sourcecode-front's Issues

fix(axios): specify "paramsSerializer" for array serialization

Hello,

As showcased here, the openapi-enforcer doesn't support to have [] in query parameters :

In a nutshell :

  • http://127.0.0.1:57185/api/tags?state=pending&tags_ids=1&tags_ids=2&categories_ids=1&title=hero ✔️
  • http://127.0.0.1:57185/api/tags?state=pending&tags_ids[]=1&tags_ids[]=2&categories_ids[]=1&title=hero

In the axios docs, the default behaviour of the culpit ( paramsSerializer ) is explained :

  // `paramsSerializer` is an optional function in charge of serializing `params`
  // (e.g. https://www.npmjs.com/package/qs, http://api.jquery.com/jquery.param/)
  paramsSerializer: function (params) {
    return Qs.stringify(params, {arrayFormat: 'brackets'})
  },

So arrayFormat: 'repeat' should be used instead :

  // `paramsSerializer` is an optional function in charge of serializing `params`
  // (e.g. https://www.npmjs.com/package/qs, http://api.jquery.com/jquery.param/)
  paramsSerializer: function (params) {
    return Qs.stringify(params, {arrayFormat: 'repeat'})
  },

Cannot upload zip anymore

Hello,

As the title said, It seems your validator is crazy about MIME verification :
image

I used zips from various source ( inginious , enseignement.be , etc ) : the bug comes from the front
as no call to the API were done ...

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet.
We recommend using:

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

feat(Exercise) : restrict license text tag to SPDX identifiers

To handle licenses, I suggest to use the SPDX License List.

Why ?

  1. It comes from Linux Foundation, a quite acknowledged organization in Open Source communities.
  2. The list of licenses is actively maintained and there is already NPM packages for that list
  3. For every license, we can directly access to the license text by :
"https://spdx.org/licenses/" + spdxIdentifier + ".html"

Example : Creative Commons Attribution Non Commercial Share Alike 4.0 International

fix: few UI ideas

Hello,

I'm come up with few ideas to increase the UX :

  • Use tooltip (infobulle in french) for too-longs tags

If a tag string length is above X (let's say 50 characters), a tooltip to display the full text (when we are hover this tag) is useful.
Currently, some tags are too long (it could occur for other reasons like a long course name)

image

  • Use "rectangle with rounded corners" containers around tags for the ones inside "favories" and "historique" panels

Currently, we have something like that :

image

The | symbol may be not clear enough for some cases (like many tag , etc...) so why not reuse the same tag container and the same color used in the main search (except that here there is not cross to remove the tag like the main search)

image

Of course, because some tags have long, we could combine this idea with the previous one (the tooltip)

image

  • Remove "Nb de" for url /administration/categories :

image

With the context, I don't believe it is useful to prepend "Nb de" (nombre de) in the columns titles as it seems easy to understand

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.