Giter VIP home page Giter VIP logo

deep-space-objects's Introduction

Hi 👋, I'm Astro Otter

hamhamfonfon

hamhamfonfon

otter_astro

  • 🔭 I’m currently working on Astro-Otter website

  • 🌱 I’m currently learning VueJs, NodeJS and Typescript

  • 💬 Ask me about PHP, Symfony and API Platform

Connect with me:

otter_astro 3279873

Languages and Tools:

cassandra elasticsearch git javascript linux mysql nginx nodejs php postgresql redis symfony vuejs

hamhamfonfon

 hamhamfonfon

hamhamfonfon

deep-space-objects's People

Contributors

dependabot[bot] avatar hamhamfonfon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

deep-space-objects's Issues

Prod : error compilation node-sass

admin@Nas-Loutres:/var/services/web/www/$ npm -v
6.4.1
admin@Nas-Loutres:/var/services/web/www/$ node -v
v8.9.4
admin@Nas-Loutres:/var/services/web/www/$ node -p process.versions
{ http_parser: '2.7.0',
  node: '8.9.4',
  v8: '6.1.534.50',
  uv: '1.15.0',
  zlib: '1.2.8',
  ares: '1.10.1-DEV',
  modules: '57',
  nghttp2: '1.25.0',
  openssl: '1.0.2k-fips',
  icu: '59.1',
  unicode: '9.0',
  cldr: '31.0.1',
  tz: '2017b' }
admin@Nas-Loutres:/var/services/web/www/$ node -p process.platform
linux
admin@Nas-Loutres:/var/services/web/www$ node -p process.arch
arm

Problem:

admin@Nas-Loutres:/var/services/web/www/$ yarn encore production
yarn run v1.15.2
$ /volume1/web/www/node_modules/.bin/encore production
Running webpack ...

 ERROR  Failed to compile with 1 errors                                                                   17:28:50

 error  in ./assets/css/app.scss

Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/lib/loader.js):
Error: Node Sass does not yet support your current environment: Linux Unsupported architecture (arm) with Node.js 8.x
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.10.0

TODO :
https://stackoverflow.com/questions/51482823/node-sass-does-not-yet-support-your-current-environment-linux-unsupported-archi
https://github.com/sass/node-sass#rebuilding-binaries

Authentication API

Test 1

    access_control:
        - { path: ^/api/auth/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/api/auth/register, roles: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/api, roles: IS_AUTHENTICATED_FULLY}

Resultat:

{
    "code": 500,
    "message": "Full authentication is required to access this resource."
}

Offer some initial suggestions

For people who have no idea what to look for, purpose some random results. Maybe must knowns objects (orion nebula, andromeda galaxy etc...)

EslasticSearch

Add users and roles.
Only admin can update/remove data in index dso/constellations

JS pattern

;(function(e1, e2) {
  let myVar = '';

  const funcName = () => {
    // ex ajax request
    const updateAjaxData = async () => {
      const settings = {
        method: 'POST',
        headers: {
          'Accept': 'application/json',
          'Content-Type': 'application/json',
          'X-Requested-With': 'XMLHttpRequest' // header for Symfony XMLHttpRequest
        },
        body: JSON.stringify({key1: val1, key2: val2})
      };
      const response = await fetch('url_backend', settings);
      if (!response.ok()) {
        throw new Error("HTTP error"); // add message error if returned by ajax request
      }
      return await response.json();
    };

    updateAjaxData()
      .then()
      .catch() {}
  }

  document.addEventListener("DOMContentLoaded", () => {
    funcName();
  )};

})(element1, element2);

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.