starter icon indicating copy to clipboard operation
starter copied to clipboard

admin page is not usable: no js and css

Open yytsui opened this issue 7 years ago • 2 comments

Following the step Installation using docker compose, the app site does work well. However, the js and css in admin page are not accessable form browser, I tried both Chrome and Firefox. Here is the erroe message from Chrome debug console:

Refused to apply style from '<URL>' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. admin:1 Refused to apply style from 'http://127.0.0.1:3000/admin/lte/bootstrap/css/bootstrap.min.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. admin:1 Refused to apply style from 'http://127.0.0.1:3000/admin/lte/dist/css/skins/_all-skins.min.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. admin:1 Refused to apply style from 'http://127.0.0.1:3000/admin/codemirror/lib/codemirror.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. admin:1 Refused to apply style from 'http://127.0.0.1:3000/admin/lte/dist/css/AdminLTE.min.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. admin:1 Refused to apply style from 'http://127.0.0.1:3000/admin/codemirror/lib/codemirror.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. admin:25 GET http://127.0.0.1:3000/admin/codemirror/mode/javascript/javascript.js net::ERR_ABORTED admin:22 GET http://127.0.0.1:3000/admin/codemirror/lib/codemirror.js net::ERR_ABORTED admin:218 GET http://127.0.0.1:3000/admin/lte/plugins/jQuery/jquery-2.2.3.min.js net::ERR_ABORTED admin:222 GET http://127.0.0.1:3000/admin/lte/plugins/slimScroll/jquery.slimscroll.min.js net::ERR_ABORTED admin:220 GET http://127.0.0.1:3000/admin/lte/bootstrap/js/bootstrap.min.js net::ERR_ABORTED admin:224 GET http://127.0.0.1:3000/admin/lte/plugins/fastclick/fastclick.js net::ERR_ABORTED admin:226 GET http://127.0.0.1:3000/admin/lte/dist/js/app.min.js net::ERR_ABORTED admin:25 GET http://127.0.0.1:3000/admin/codemirror/mode/javascript/javascript.js net::ERR_ABORTED admin:218 GET http://127.0.0.1:3000/admin/lte/plugins/jQuery/jquery-2.2.3.min.js net::ERR_ABORTED admin:220 GET http://127.0.0.1:3000/admin/lte/bootstrap/js/bootstrap.min.js net::ERR_ABORTED admin:222 GET http://127.0.0.1:3000/admin/lte/plugins/slimScroll/jquery.slimscroll.min.js net::ERR_ABORTED admin:224 GET http://127.0.0.1:3000/admin/lte/plugins/fastclick/fastclick.js net::ERR_ABORTED admin:226 GET http://127.0.0.1:3000/admin/lte/dist/js/app.min.js net::ERR_ABORTED admin:230 Uncaught ReferenceError: $ is not defined at admin:230 (anonymous) @ admin:230 mixpanel-2-latest.min.js:9 Mixpanel error: "mixpanel" object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide. U @ mixpanel-2-latest.min.js:9 (anonymous) @ mixpanel-2-latest.min.js:117 (anonymous) @ mixpanel-2-latest.min.js:118 (anonymous) @ mixpanel-2-latest.min.js:118 (anonymous) @ mixpanel-2-latest.min.js:119

Screenshot in Chrome: screen shot 2018-02-07 at 2 44 46 pm

Screenshot in Firefox: screen shot 2018-02-07 at 2 45 24 pm

yytsui avatar Feb 07 '18 22:02 yytsui

Bump. Still an issue.

CREEATION avatar May 23 '18 15:05 CREEATION

Hello, @yytsui, @CREEATION. Couldn't believe someone is using / want to use this library. I've sent a patch in the last commit. Haven't tested with docker compose now but it works with standard installation / usage, so for docker should be also ok.

Btw: I am experimenting with many similar solution around software and data (searching, filtering, recommendation) and if you tell me what do you like the most about this kind of software, then it could help me with making it better

cigolpl avatar May 24 '18 15:05 cigolpl