Issue in getting assets
See original GitHub issueI am trying to run a simple test model to display dataset
in a dashboard. After executing my script only text is displayed but no dataset is loaded on front, and in the REPL I get an error showing that the assets cannot be obtained.
Script:
using Genie, Genie.Renderer.Html, Stipple
using StippleUI
using StippleUI: DataTable, DataTablePagination
using DataFrames
using Genie.Renderer
dt = DataFrame(rand(10,2), ["x1", "x2"])
#WEB_TRANSPORT = Genie.WebChannels #for websockets
WEB_TRANSPORT = Genie.WebThreads #for AJAX/HTTP
@reactive mutable struct Dashboard <: ReactiveModel
data::R{DataTable} = DataTable()
data_pagination::DataTablePagination = DataTablePagination(rows_per_page=50)
data_loading::R{Bool} = false
end
model = Dashboard()
model.data[] = DataTable(dt)
#model = Stipple.init(Dashboard)
function ui()
layout(
page(model,
[
heading("Dashboard")
row([
cell(class="st-module", [
h4("Dataset")
table(@data(:data);
pagination=:data_pagination,
loading=:data_loading,
dense=true, flat=true, style="height: 350px;"
)
])
])
]), channel = model.channel__, # the channel assigned to model
title = "Dataset"
) |> html
end
route("/") do
ui()#init(Dashboard, transport = WEB_TRANSPORT) |> ui
end
up(9000; async = false, server = Stipple.bootstrap())
Error Displayed:
β Info:
β Web Server starting at http://127.0.0.1:9000 - press Ctrl/Cmd+C to stop the server.[ Info: GET / 200
[ Info: GET /stipple.jl/master/assets/css/stipplecore.css 200
β Error: GET /stipple.jl/master/assets/js/stipplecore.js 404
β @ Genie.Router C:\Users\user\.julia\packages\Genie\psIXJ\src\Router.jl:163
β Error: GET /stipple.jl/master/assets/js/vue.js 404
β @ Genie.Router C:\Users\user\.julia\packages\Genie\psIXJ\src\Router.jl:163
β Error: GET /stipple.jl/master/assets/js/underscore-min.js 404
β @ Genie.Router C:\Users\user\.julia\packages\Genie\psIXJ\src\Router.jl:163
[ Info: GET /genie.jl/master/assets/js/ydgprrykasqwpupwpklkqunbdlxqcfcn/channels.js 200
[ Info: GET /stippleui.jl/master/assets/css/quasar.min.css 200
β Error: GET /stipple.jl/master/assets/js/watchers.js 404
β @ Genie.Router C:\Users\user\.julia\packages\Genie\psIXJ\src\Router.jl:163
[ Info: GET /stippleui.jl/master/assets/js/quasar.umd.min.js 200
β Error: GET /stipple.jl/master/assets/js/keepalive.js 404
β @ Genie.Router C:\Users\user\.julia\packages\Genie\psIXJ\src\Router.jl:163
β Error: GET /stipple.jl/master/assets/js/vue_filters.js 404
β @ Genie.Router C:\Users\user\.julia\packages\Genie\psIXJ\src\Router.jl:163
β Error: GET /stipple.jl/master/assets/js/underscore-min.js 404
β @ Genie.Router C:\Users\user\.julia\packages\Genie\psIXJ\src\Router.jl:163
β Error: GET /stipple.jl/master/assets/js/vue.js 404
β @ Genie.Router C:\Users\user\.julia\packages\Genie\psIXJ\src\Router.jl:163
β Error: GET /stipple.jl/master/assets/js/stipplecore.js 404
β @ Genie.Router C:\Users\user\.julia\packages\Genie\psIXJ\src\Router.jl:163
β Error: GET /stipple.jl/master/assets/js/vue_filters.js 404
β @ Genie.Router C:\Users\user\.julia\packages\Genie\psIXJ\src\Router.jl:163
β Error: GET /stipple.jl/master/assets/js/watchers.js 404
β @ Genie.Router C:\Users\user\.julia\packages\Genie\psIXJ\src\Router.jl:163
β Error: GET /stipple.jl/master/assets/js/keepalive.js 404
β @ Genie.Router C:\Users\user\.julia\packages\Genie\psIXJ\src\Router.jl:163
β Error: GET /stipple.jl/master/assets/js/underscore-min.js 404
β @ Genie.Router C:\Users\user\.julia\packages\Genie\psIXJ\src\Router.jl:163
β Error: GET /stipple.jl/master/assets/js/vue.js 404
β @ Genie.Router C:\Users\user\.julia\packages\Genie\psIXJ\src\Router.jl:163
β Error: GET /stipple.jl/master/assets/js/stipplecore.js 404
β @ Genie.Router C:\Users\user\.julia\packages\Genie\psIXJ\src\Router.jl:163
β Error: GET /stipple.jl/master/assets/js/vue_filters.js 404
β @ Genie.Router C:\Users\user\.julia\packages\Genie\psIXJ\src\Router.jl:163
β Error: GET /stipple.jl/master/assets/js/watchers.js 404
β @ Genie.Router C:\Users\user\.julia\packages\Genie\psIXJ\src\Router.jl:163
β Error: GET /stipple.jl/master/assets/js/keepalive.js 404
β @ Genie.Router C:\Users\user\.julia\packages\Genie\psIXJ\src\Router.jl:163
System config
julia -> 1.6.0
Stipple.jl -> 0.20.2
Would appreciate the help in fixing this issue! Thanks!
Issue Analytics
- State:
- Created 2 years ago
- Comments:16 (9 by maintainers)
Top Results From Across the Web
Asset Deficiency Definition
Asset deficiency is a situation where a company's liabilities exceed its assets indicating that a company may soon default and be headed for...
Read more >Challenges in Measuring Assets, Liabilities & Equities
There are many challenges when measuring assets, liabilities and equity. Discover the problems that can be faced when determining the valueΒ ...
Read more >4 Balance Sheet Problems and How to Prevent Them
Keep Your Eyes Peeled for These 4 Balance Sheet Problems ; Assets (what you own); Liabilities (what you owe); Equity (money left over...
Read more >Top Fixed Assets Management Challenges - Bloomberg Tax
Top 10 Fixed Assets Challenges Β· 1. Overcoming manual mistakes and inefficiencies Β· 2. Avoiding the pitfalls of spreadsheets Β· 3. Managing financial...
Read more >5 Problems Occur Due to the Absence of Asset Management
1. No Asset Information. In the event that you don't even have the foggiest idea that how many assets are there in your...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
thanks @essenciary for the detailed example and also giving solution to the problem. I highly appreciate it !! Your post has provided a great insight on the use of this package. And thanks to @AbhimanyuAryan for helping and suggesting throughout this post.
Thanks both of you !!!
@mdsa3d that sounds awesome. We are looking forward to more amazing open source contributors(saviors of the world). You can begin by contributing to Stipple Demos since you are already learning Stipple.