Coder Social home page Coder Social logo

inferno's People

Contributors

amitavroy avatar dependabot[bot] 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

Watchers

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

inferno's Issues

Problem with Array_combine

I always get the error on array_combine that the element are not the same so below my work around for array_combine
////////////////////////////////////////////////////////////////
function array_combine_special($header, $row, $pad = TRUE) {
$acount = count($header);
$bcount = count($row);
// more elements in $a than $b but we don't want to pad either
if (!$pad) {
$size = ($acount > $bcount) ? $bcount : $acount;
$header = array_slice($header, 0, $size);
$row = array_slice($row, 0, $size);
} else {
// more headers than row fields
if ($acount > $bcount) {
$more = $acount - $bcount;
// how many fields are we missing at the end of the second array?
// Add empty strings to ensure arrays $a and $b have same number of elements
$more = $acount - $bcount;
for($i = 0; $i < $more; $i++) {
$row[] = "";
}
// more fields than headers
} else if ($acount < $bcount) {
$more = $bcount - $acount;
// fewer elements in the first array, add extra keys
for($i = 0; $i < $more; $i++) {
$key = 'extra_field_0' . $i;
$header[] = $key;
}

        }
    }

    return array_combine($header, $row);
}

However after this on this line of code (!$this->checkValidEmail($row['email'])) i get an undefined index email on the path

foreach ($rows as $key => $row) {
$row = $this->array_combine_special($header, $row);
$this->rows[] = $row;

        // check for correct email
        if (!$this->checkValidEmail($row['email'])) { /// undefined index email here
            $row['message'] = 'Invalid email';
            $this->errorRows[$key] = $row;
            $this->valid = false;
        } else {
            $emails[] = $row['email'];
        }
    }

What can i do to fix this problem because i can not seem to get it

Roles and Permissions

System should have the Roles and Permissions management screen.

User should have some default roles and there should be higher level roles to control the system.

Will be using Entrust for Roles and Permissions

Double upload of image should not happen

Double upload of image will happen because I am not checking the current upload status of the image. Ideally I will have to handle that so that when the process is already running, the user should not be able to click the button and create a new request.

Token based activation of User account

Right now the token generated for the user is not used. Ideally a User once registered should get an email with the token to activate. Once the user gets an email, he / she should click on the link to activate his account and then we can login the user and taken him to the Dashboard page.

Samir Ihaddadene From Youtube.com

Hello Amitav, i want to have the same size as the white rectangle of cropping as the size of my image that i uploaded, i tried with zooming to zéro but that doesn't work.
this is bellow my code( Thank you for help) :

`

<script src="jquery-3.4.1.min.js"></script> <script src="../croppie-2.6.4/croppie.js"></script>
<div class="Modal" v-if="modalVisible" id="resizer-demo">
    <script type="text/javascript">
        var el = document.getElementById('resizer-demo');
        var resize = new Croppie(el, {
            viewport: { width: 400, height: 300 },
            //original: { width: 400, height: 400, type: 'square' },
            boundary: { width: 500, height: 400 },
            showZoomer: false,
            //enableZoom: false,  1ere solution
            enableResize: true,
            //enableOrientation: true,
            //mouseWheelZoom: 'ctrl',
            
        });
       
        resize.bind({ 
            url: 'img.PNG',
            //zoom: 0    //5eme solution
            //points: [0, 0, 800, 600]
        });

        resize.result('blob').then(function (blob) {
            console.log('PHOT CROPPED');
            resize.setZoom(0.0);
            
        });
    </script>
`

Notification component

There should be a notification component which will listen to events and based on the level show different error messages and also time out if there is an option to.

Failed to register user

Clicking on 'Register a new user' link results in error page. A Route for the register page is apparently not defined in web.php

User profile page

In this page a User can change his profile information like Display name and all his profile fields.
He can also change his password which is a tab in this same page.
Also, there will be a widget for him to upload his profile pic.

Settings management page

Need a settings management page which will in the end result in setting the settings.json file.

An interface is good to have.

Problem with laravel mix

This is my mix file


mix.js('resources/assets/js/app.js', 'public/js').version();
mix.sass('resources/assets/sass/app.scss', 'public/css');

However whenever I run npm run watch only js file is generated
and keep getting the same error about dependencies .
It says
_ERROR Failed to compile with 2 errors

These dependencies were not found in node_modules:

the app.scss amd app.js files where not found

Did you forget to run npm install --save for them? _

Configuration

$ npm -v 5.2.0
$ node -v v8.0.0
"devDependencies": {

    "axios": "^0.15.2",
    "bootstrap-sass": "^3.3.7",
    "jquery": "^3.1.0",
    "laravel-mix": "^0.5.0",
    "lodash": "^4.16.2",
    "vue": "^2.0.1"
    },

edit one
First I updated cross-env/bin to cross-env/dist/bin in the scripts

"scripts": {
    "dev": "node node_modules/cross-env/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
    "watch": "node node_modules/cross-env/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
    "hot": "node node_modules/cross-env/bin/cross-env.js NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
    "production": "node node_modules/cross-env/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
  },

edit two
Next , I updated laravel-mix to use ^0.8.1

Confirmation modal

Vuejs actions require a Modal confirmation dialog which can send post data.

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.