amahi / platform Goto Github PK
View Code? Open in Web Editor NEWCore of the Amahi Platform, a web app in RoR
License: Other
Core of the Amahi Platform, a web app in RoR
License: Other
i cannot seem to find why this fails. other tests have a similar setup. the failure follows this test! rather strange.
TypeError: 'undefined' is not a function (evaluating '$('.stretchtoggle').live')
at http://127.0.0.1:62772/assets/application.js:25630
at http://127.0.0.1:62772/assets/application.js:1018
at http://127.0.0.1:62772/assets/application.js:1128
at http://127.0.0.1:62772/assets/application.js:417
at http://127.0.0.1:62772/assets/application.js:93
# (eval):2:in `click_button'
# ./spec/requests/users_tab_spec.rb:34:in `block (2 levels) in <top (required)>'
Currently news feed on dashboard shows time in weeks only, which is not very intuitive and so it needs to be converted to more readable and intuitive format.
I am working on to solve this issue, will send pull request in a while 😄
Exception raised in Apps > Installed with two apps installed. Details:
ActionView::Template::Error (undefined method `toggle_in_dashboard_app_path' for #<#<Class:0x00000003adea50>:0x000000039ef928>):
1: = simple_remote_checkbox :id => "in_dashboard_#{app.id}",
2: :css_class => 'in_dashboard_checkbox',
3: :url => toggle_in_dashboard_app_path(:id => app.identifier),
4: :label => " List in dashboard ",
5: :checked => app.show_in_dashboard
plugins/040-apps/app/views/apps/_in_dashboard.html.slim:3:in `_plugins_____apps_app_views_apps__in_dashboard_html_slim__3608747127184294939_35834800'
Issues for this package are tracked at the Amahi bug tracker.
Please leave this issue open so that others can see it and follow to the bug tracker.
looks like the PIN stuff uses duplicated HTML IDs?
[DOM] Found 2 elements with non-unique id #edit_user_1: (More info: https://goo.gl/9p2vKq) <form class="update-password update-form form-horizontal left-margin-20" id="edit_user_1" action="/tab/users/users/1/update_password" accept-charset="UTF-8" data-remote="true" method="post">…</form> <form class="update-pin update-form form-horizontal left-margin-20" id="edit_user_1" action="/tab/users/users/1/update_pin" accept-charset="UTF-8" data-remote="true" method="post">…</form>
(index):1 [DOM] Found 2 elements with non-unique id #edit_user_2: (More info: https://goo.gl/9p2vKq) <form class="update-password update-form form-horizontal left-margin-20" id="edit_user_2" action="/tab/users/users/2/update_password" accept-charset="UTF-8" data-remote="true" method="post">…</form> <form class="update-pin update-form form-horizontal left-margin-20" id="edit_user_2" action="/tab/users/users/2/update_pin" accept-charset="UTF-8" data-remote="true" method="post">…</form>
I wanted to finish the users plugin by moving it's relevant parts in the assets area to the plugin.
After doing that, I realized that the documentation indicates there should be a task users_engine:
rake users_engine:install:assets
however, there is no such task. the only task related to the users engine is
rake users_engine:install:migrations
Since we want these plugins to mount and unmount in one directory clean, we want to avoid the install assets situation. We want the asset pipeline to pick them up when the app is started. This article on mountable engines indicates one could assign
config.asset_path
in the engine class for the engine.
I tried to add a config.asset_path assignment in plugins/001-users/lib/users/engine.rb with various combinations of:
config.asset_path = "/app/assets%s"
config.asset_path = "/tab/users/app/assets%s"
and a couple more without success.
Obviously, I do not understand the asset pipeline to know how to control this ...
I was working on the iOS repo for the GSOC 2019 project but I can't test the app as the server's certificate has expired and now I can't log in, someone please look into this as soon as possible
Platform would get the cert from the API (from the user) as well as install it properly for the virtualhost that needs it. Plugin should show the status and time when the last certificate is generated and will show an alert before 15 days of the expiry of generated certificate. It will also give user option to regenerate it.
Hello
I'm just trying this(amahi/platform) my osx machine.
I found an error follow.
app/controllers/shares_controller.rb:43:in `disk_pooling'
uninitialized constant SharesController::DiskPoolPartition
Where could I find the model.
Hi everyone if you facing this issue that if you close the Freenode tap and you automatically log out (or leave) the IRC then for this you can use Riot.im and log in with Freenode this slove your prolem.
Hi! I was trying to setup my development environment with docker. I've followed the tutorial on README.md, but i fails after running docker-compose run amahi_web bundle exec rake db:create
.
Here's the output:
Starting platform_amahi_box_1_dfd960b06721 ... done
Starting amahi_mysqldb ... done
Authentication plugin 'caching_sha2_password' cannot be loaded: /usr/lib64/mysql/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory
Couldn't create database for {"adapter"=>"mysql2", "encoding"=>"utf8", "pool"=>5, "database"=>"amahi_dev", "host"=>"amahi_mysqldb", "username"=>"root", "password"=>"test123"}
rake aborted!
Mysql2::Error: Authentication plugin 'caching_sha2_password' cannot be loaded: /usr/lib64/mysql/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory
/box/gems/mysql2-0.5.1/lib/mysql2/client.rb:90:in `connect'
/box/gems/mysql2-0.5.1/lib/mysql2/client.rb:90:in `initialize'
/box/gems/activerecord-5.2.0/lib/active_record/connection_adapters/mysql2_adapter.rb:22:in `new'
/box/gems/activerecord-5.2.0/lib/active_record/connection_adapters/mysql2_adapter.rb:22:in `mysql2_connection'
/box/gems/activerecord-5.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:809:in `new_connection'
/box/gems/activerecord-5.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:853:in `checkout_new_connection'
/box/gems/activerecord-5.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:832:in `try_to_checkout_new_connection'
/box/gems/activerecord-5.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:793:in `acquire_connection'
/box/gems/activerecord-5.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:521:in `checkout'
/box/gems/activerecord-5.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:380:in `connection'
/box/gems/activerecord-5.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:1008:in `retrieve_connection'
/box/gems/activerecord-5.2.0/lib/active_record/connection_handling.rb:118:in `retrieve_connection'
/box/gems/activerecord-5.2.0/lib/active_record/connection_handling.rb:90:in `connection'
/box/gems/activerecord-5.2.0/lib/active_record/tasks/mysql_database_tasks.rb:6:in `connection'
/box/gems/activerecord-5.2.0/lib/active_record/tasks/mysql_database_tasks.rb:14:in `create'
/box/gems/activerecord-5.2.0/lib/active_record/tasks/database_tasks.rb:119:in `create'
/box/gems/activerecord-5.2.0/lib/active_record/tasks/database_tasks.rb:139:in `block in create_current'
/box/gems/activerecord-5.2.0/lib/active_record/tasks/database_tasks.rb:316:in `block in each_current_configuration'
/box/gems/activerecord-5.2.0/lib/active_record/tasks/database_tasks.rb:313:in `each'
/box/gems/activerecord-5.2.0/lib/active_record/tasks/database_tasks.rb:313:in `each_current_configuration'
/box/gems/activerecord-5.2.0/lib/active_record/tasks/database_tasks.rb:138:in `create_current'
/box/gems/activerecord-5.2.0/lib/active_record/railties/databases.rake:29:in `block (2 levels) in <top (required)>'
/box/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
/usr/local/share/gems/gems/bundler-1.14.6/lib/bundler/cli/exec.rb:74:in `load'
/usr/local/share/gems/gems/bundler-1.14.6/lib/bundler/cli/exec.rb:74:in `kernel_load'
/usr/local/share/gems/gems/bundler-1.14.6/lib/bundler/cli/exec.rb:27:in `run'
/usr/local/share/gems/gems/bundler-1.14.6/lib/bundler/cli.rb:335:in `exec'
/usr/local/share/gems/gems/bundler-1.14.6/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/usr/local/share/gems/gems/bundler-1.14.6/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/usr/local/share/gems/gems/bundler-1.14.6/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
/usr/local/share/gems/gems/bundler-1.14.6/lib/bundler/cli.rb:20:in `dispatch'
/usr/local/share/gems/gems/bundler-1.14.6/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
/usr/local/share/gems/gems/bundler-1.14.6/lib/bundler/cli.rb:11:in `start'
/usr/local/share/gems/gems/bundler-1.14.6/exe/bundle:32:in `block in <top (required)>'
/usr/local/share/gems/gems/bundler-1.14.6/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
/usr/local/share/gems/gems/bundler-1.14.6/exe/bundle:24:in `<top (required)>'
/usr/local/bin/bundle:22:in `load'
/usr/local/bin/bundle:22:in `<main>'
Tasks: TOP => db:create
(See full trace by running task with --trace)
Am I missing something? Let me know!
sqlite3 --version
3.25.2
mysql --version
mysql Ver 14.14 Distrib 5.7.25
Error Log:
bin/bundle exec rake db:test:prepare
rake aborted!
ActiveRecord::StatementInvalid: SQLite3::SQLException: near "ENGINE": syntax error: CREATE TABLE "app_dependencies" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "app_id" integer, "dependency_id" integer, "created_at" datetime, "updated_at" datetime) ENGINE=InnoDB DEFAULT CHARSET=utf8
/home/kareem/Projects/platform/db/schema.rb:15:in block in <top (required)>' /home/kareem/Projects/platform/db/schema.rb:13:in
<top (required)>'
bin/bundle:104:in load' bin/bundle:104:in
Caused by:
SQLite3::SQLException: near "ENGINE": syntax error
/home/kareem/Projects/platform/db/schema.rb:15:in block in <top (required)>' /home/kareem/Projects/platform/db/schema.rb:13:in
<top (required)>'
bin/bundle:104:in load' bin/bundle:104:in
I can get around this by removing options: "ENGINE=InnoDB DEFAULT CHARSET=utf8"
from the schema file before running make run-tests.
themes are now:
public/themes
init.rb
is the same, however, there is no interpretation on assets, they have to be compiledsrc
folder with the style.scss
, _mixins.scss
, then generated the css with by compilind the scss by hand.app/assets/
iirc.This feature is listed on amahi platform site at Feature #2255
This issue is created for tracking list of remaining erb files converted to slim.
Sent pull request So, In review:-
Due to this a mysql login error is a given.To solve this,the /path/to/database.yml file is manually edited to change the default msyql password from amahi to realmysql password.This is time consuming in the development platform
DEPRECATION WARNING: Using a dynamic :action segment in a route is deprecated and will be removed in Rails 6.0. (called from block in <top (required)> at /home/travis/build/amahi/platform/config/routes.rb:39)
DEPRECATION WARNING: Using a dynamic :controller segment in a route is deprecated and will be removed in Rails 6.0. (called from block in <top (required)> at /home/travis/build/amahi/platform/config/routes.rb:43)
DEPRECATION WARNING: Using a dynamic :action segment in a route is deprecated and will be removed in Rails 6.0. (called from block in <top (required)> at /home/travis/build/amahi/platform/config/routes.rb:43)
seeing a few errors like this, indicating the assets from the plugins are not loaded at all:
ActionController::RoutingError (No route matches [GET] "/javascripts/settings.js")
It would be nice to see a system with an IP in the DHCP Leases
tab and easily be able to make it a fixed IP.
The user should be shown some interface to enter the last byte of the new IP. Validation should be done for it to always within the range of fixed IP addresses and also not be the IP of the gateway or the IP of the HDA, as well as any other fixed IP addresses.
Bonus points to auto-suggest the "next available" IP.
I am trying to understand this project more closely but I'm a little confused.
First of all, the installation process. I couldn't find information anywhere about support on Ubuntu. The installation method for Ubuntu as mentioned in the docs here http://docs.amahi.org/ubuntu-12.html doesn't work.
wget http://u12.amahi.org/install-amahi
--2017-03-13 10:29:37-- http://u12.amahi.org/install-amahi
Resolving u12.amahi.org (u12.amahi.org)... 208.115.201.203
Connecting to u12.amahi.org (u12.amahi.org)|208.115.201.203|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-03-13 10:29:38 ERROR 404: Not Found
I couldn't find any packages also for installation in Ubuntu.
After this I cloned the code and initialised the application for testing. I ran the app with simple "rails s" command and accessed the dashboard on "localhost:3000" but I was not able to install any apps or setup shares which makes sense because those things require root permission. I would like to document the whole process a little for ubuntu if you can provide some clarity.
Are there any plans to dockerize amahi platform? That will make the installation, deployment, development and testing much easier. Also that can help in deploying amahi to many more linux distributions which are currently not supported.
I have been working on dockerizing it on my system and I can take it up as a GSoC project if the authors are ok with it.
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.