distributev / the-app Goto Github PK
View Code? Open in Web Editor NEWThe App
License: MIT License
The App
License: MIT License
It should continue to work the same as it is working now.
theapp-template/TheApp/_internal/data/place the sqllite3 database file here.txt
This one remained like that?
Where is the sqllite3 db file currently stored?
It's a good practice to minimize the number of dependencies.
Now I see that q.js, another promise library, dependency is also added. Please remove q.js and use the existing dependency bluebird.js to achieve the same.
The git pushed code should be free of any warnings and/or errors at build and/or runtime.
gulpfile.babel should not be changed
Client side JS and CSS files should not be hard-coded by hand in index.html but instead should be injected automatically by the gulpfile.babel/bower build
I keep repeat pasting this here since previous freelancers tried to "fix" similar issues by removing the javascript linting rules from the build. Once I will see it's safe and you don't mess with gulpfile.babel and you don't hardcode deps in index.html then I will not repeat (copy-paste) the same pre-requisite rules.
again check if it's an issue with angular-fullstack and if so search their repository for solutions and if there is none - raise yourself the issue. This is the approach we need to take.
For full details please refer to attached kue-jobs.zip
Implement 3 AngularJS directives to show/filter/pause/resume/stop/delete KUE jobs
The delivery of this project will be 3 AngularJS1.x directives to display and manage the JOBs available on the KUE node.js priority job queue
https://github.com/Automattic/kue
Please see something similar - https://raw.githubusercontent.com/joeframbach/agendash/master/job-details.png
However you need to implement the directives as per the requirements from this project.
The list-jobs directive should render a datatables.net powered table with the list of jobs available in KUE
There should be capabilities to /show/pause/resume/stop/delete jobs, filter jobs, search jobs, etc.
The list-jobs directive should offer following arguments
(a) jobType - if provided the rendered table will list only the jobs of type jobType otherwise render all jobs no matter of their type
(b) maxFetchDate - if provided fetch only the jobs newer >= then maxFetchDate otherwise don't filter on date - default value is 3 months ago
(c) maxFetchSize - if provided fetch maximum maxFetchSize rows otherwise all jobs that match maxFetchDate condition - default value is 200
(d) autoRefreshInterval - auto-refresh the jobs table user interface with jobs every autoRefreshInterval ms - default value is 60 000 ms (1 minute)
The view-job-details directive should offer following arguments
(a) jobId - the ID of the job to view details of
(b) autoRefreshInterval - auto-refresh the job details autoRefreshInterval ms - default value is 60 000 ms (1 minute)
(c) showRequeueButton - if TRUE then show the Requeue button otherwise don't show default value is TRUE
view-job-details should also offer capabilities to /delete/requeue the job
The start-stop-jobs directive should offer functionality/buttons to pause/resume/stop all jobs in the queue.
For all details on how the user interface should look and what capabilities should be implemented see the attached PNG files.
To understand how job filtering should work see
04 - filtering-when-list-jobs-jobtype-argument-is-provided.png
05 - filtering-when-list-jobs-jobtype-argument-is-not-provided-null.png
Login in your Gmail account and notice how filtering for emails is implemented. Job filtering should work similarly.
from https://github.com/distributev/ng-admin-lte repository
including Customers and Transactions
I remember I said to leave Customers / Transactions out but I need menu.js functionality from that repository and I forgot Customers and Transactions are supposed to test that menu.js works fine.
The final result should contain only our own functionality and not any "dummy" feature (thing) from angular-fullstack
gulpfile.babel should not be changed
Client side JS and CSS files should not be hard-coded by hand in index.html but instead should be injected automatically by the gulpfile.babel/bower build
If you find it's an issue with angular-fullstack look on their issue tracker if somebody else raised the same and what was the solution.
If you find it's an issue with angular-fullstack but you don't find any issue raised yet for that - please raise yourself the issue and past the link to the issue here so I can follow up with the proposed solutions.
Where is the following dependency used?
"bluebird": "^3.4.1"
/TheApp/ and theapp.zip are still hard-coded in the gulp file.
Please replace both with corresponding variables defined at the beginning of file.
Is there any other hard-coding in the new gulp package tasks? If some remove all hard-codings introduced in the new package tasks.
as you said user.get('_id') it's not reliable between different executions of same software
sometimes admin with id = 1 and other times admin with id = 3
what is reliable identifying users across prod and dev and accross executions is their email req.user.get('email')
===>
replace all occurences of user.get('_id') with user.get('email')
P.S - as a side effect the Promise error will go away. This is not the main scope of this change. The scope is that it's more correct with user.get('email')
The component it's actually the /jobs/ - kue it's only the API used to implement the /jobs/ component
I see that an extra admin folder was introduced under the /client/app While I'm not sure the reason why this was done it might be related with the new /admin routes which were requested.
Please remove this extra admin folder and roll back to the initial folder structure. My intention is only to have the angularjs routing remapped as required and not to create new physical folder in the source tree.
It might be that the requirements were not clear (sorry if that is the case) but I read now again the 03 - how-to - Updated.txt and I can see that I have specified there everywhere move all current app routes under /admin/* and in many other places it says the word routes only.
Route to /theapp to solve the conflict with hexo-admin which is also mounting to /admin
Instead of /admin route everything (only angularjs route remapping) to /theapp so the current /login will become /theapp/login and the current /admin (the one changed to /users) will become /theapp/admin and so on. This is to solve the conflict with hexo-admin which is also mounting to the same /admin - This time also only remapp to /theapp the angularjs routing and don't create new folders in the source tree.
Please put back default express/node.js port.
If it will be required to change the port on which the application runs how this can be done?
Following files are not related with the current task - why following files were modified?
Please revert the changes for following files
client/app/app.constant.js
client/index.html
.gitignore
In server/api/jobs/jobs.controller.js
Hard-codings are not good.
For instance currently gulp serve:dist command fails because of hard-coded redis.json path
With this project https://github.com/distributev/package-app the application will (very) soon get an additional deployment strategy (besides the existing development and dist:production) which means the existing hard-coded paths will create even more trouble (when package-app project code will be merged)
When I first tested this after git pull I got the impression that the skin was not saved during logout and login again. 2nd time it worked ==> test and double check this functionality works all the time.
Another thing is that the saved skin should be applied even after the user is doing logout and he comes again to the login screen. The login screen should have the user's saved theme (from local storage - in case the user did not delete browser cache).
merge kue-jobs branch into master branch
See attached view-job.zip
Implement a simple AngularJS directive to view details of an individual KUE job
The delivery of this project will be an AngularJS1.x directive to display the details of any individual KUE job (KUE is a node.js job queue)
https://github.com/Automattic/kue
There should be capabilities to /delete/requeue the job
The view-job directive should offer following arguments
(a) jobId - the ID of the job to view details of
(b) autoRefreshInterval - auto-refresh the job details autoRefreshInterval ms - default value is 60 000 ms (1 minute)
(c) showRequeueButton - if TRUE then show the Requeue button otherwise don't show default value is TRUE
For all details on how the user interface should look and what capabilities should be implemented see
03 - view-job-directive.png
Is there any kue API /jobs/email or /jobs/backup, etc.?
"nope. unfortunately. when selecting job type, must provide state i.e inactive, failed, etc. If there is, I've already enable it :) easier for me to implement also."
For more details please see issue add-show-all-statuses-filter-option #16
When I start the application I get the empty screen http://localhost:9000 (see previous issue)
If I try now to put a front-end URL let's say http://localhost:9000/login instead of the expected 404 error (not found) I get an Infinite recursion calls to /generated/home.html - the screen is blinking trying to reload home.html and infinite of times.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.