Comments (30)
How do i implement this on a asp.net mvc project?
from adminator-admin-dashboard.
Hello could you guide me how to implement the template in angular 8 or an example to consult?
from adminator-admin-dashboard.
@kossa Thanks a lot :-)
from adminator-admin-dashboard.
Have finally got working.
Steps:
1 delete node_modules folder
2 $ npm install
3 $ npm run build
3.1 Fix all errors for dependencies that show up (from what I can see people are experiencing different issues here). Everything should show up green when all errors are fixed and you run $ npm build
4 $ webpack-dev-server --no-inline
from adminator-admin-dashboard.
How do i implement this on a asp.net mvc project?
from adminator-admin-dashboard.
How do i implement this on a asp.net mvc project?
from adminator-admin-dashboard.
How to get it in Angular project?
from adminator-admin-dashboard.
from adminator-admin-dashboard.
In your URL I see that you try to load the file directly from the folder, instead you have to deploy, and then launch the server(the urls are absolute not relative)
run : npm run build
and open a server under the build folder
from adminator-admin-dashboard.
@kossa Yep, I can run it through npm run build
. But how can I deploy it to my server(With NGINX)? Which libraries are dependent?
from adminator-admin-dashboard.
I run npm run build
command, but it freezes after next lines:
I can get a compiled version? I don't want to use Admin LTE (ugly) or sb-admin (too simple) anymore.
from adminator-admin-dashboard.
@AlanJinqs you can upload only the build folder to your server
Otherwise the best way is to build and link your server directly to build folder
@joseblanco77 may be problem with node version
from adminator-admin-dashboard.
@kossa thank you but it doesn't work. I just update my node from v6.11.3 to v9.2.1
Then I run the npm install
and npm run build
and still freezing at the same point.
from adminator-admin-dashboard.
@joseblanco77, got to top of command window you'll see the error
For me it's freezing too, but I opened new window I launched a server and it everything works fine
from adminator-admin-dashboard.
@kossa Thanks, but when I upload the build folder to my server, I can't load the CSS styles...It's same as load the src folder directly...
from adminator-admin-dashboard.
Point your server to directly to build folder, bcz the link to css are absolute ;)
from adminator-admin-dashboard.
i just try to build somethink adminator but when i try using npm run dev this think happen to me
from adminator-admin-dashboard.
Hi @rahmatputrawiranata I got the same error as you (happens on windows machines)
I resolved it with this:
open up a new cmd as administrator and run this command:
npm install --global --production windows-build-tools
Found the solution at chjj/pty.js#60
from adminator-admin-dashboard.
@jeffersonor900 does any of this solutions worked for you ?
from adminator-admin-dashboard.
After "npm run dev" , load it on the server created by webpack "http://localhost:3000/index.html" and will work for sure, not just "http://0.0.0.0:3000/" or "http://127.0.0.1:3000" they are the same thing.
from adminator-admin-dashboard.
how do i implement this on a laravel-based project??
from adminator-admin-dashboard.
Already done : https://github.com/kossa/laradminator
from adminator-admin-dashboard.
how to I add another plugin like select2.js? thank for advance
from adminator-admin-dashboard.
Here is an example for sweetalert 2
https://github.com/kossa/laradminator/blob/master/resources/assets/js/bootstrap.js#L37
https://github.com/kossa/laradminator/blob/master/resources/assets/js/sweetalert2/index.js
from adminator-admin-dashboard.
How do i implement this on a asp.net mvc project?
from adminator-admin-dashboard.
How to add a new page?
from adminator-admin-dashboard.
Instead of forking and modifying the project itself, it'd be cool to have an option to use it as dependency:
yarn add adminator
in css file
@import "adminator/src/assets/styles/index.scss"
in js flie
import "adminator/src/assets/scripts/index";
from adminator-admin-dashboard.
Just in case someone has googled this issue.
Successfully ran adminator on Phoenix framework (Elixir) with the following webpack 4:
My package.json
dependencies:
{
"dependencies": {
"adminator": "https://github.com/puikinsh/Adminator-admin-dashboard.git",
"phoenix": "file:../deps/phoenix",
"phoenix_html": "file:../deps/phoenix_html"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"babel-loader": "^8.0.0",
"copy-webpack-plugin": "^4.5.0",
"css-loader": "^2.1.1",
"mini-css-extract-plugin": "^0.4.0",
"node-sass": "^4.12.0",
"optimize-css-assets-webpack-plugin": "^5.0.1",
"sass-loader": "^7.1.0",
"uglifyjs-webpack-plugin": "^1.2.4",
"webpack": "4.4.0",
"webpack-cli": "^3.3.2"
}
}
webpack.config.js
:
const path = require('path');
const glob = require('glob');
const webpack = require('webpack');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = (env, options) => ({
optimization: {
minimizer: [
new UglifyJsPlugin({ cache: true, parallel: true, sourceMap: false }),
new OptimizeCSSAssetsPlugin({})
]
},
entry: {
'./js/app.js': ['./js/app.js'].concat(glob.sync('./vendor/**/*.js'))
},
output: {
filename: 'app.js',
path: path.resolve(__dirname, '../priv/static/js')
},
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader'
}
},
{
test: /\.css$/,
use: [MiniCssExtractPlugin.loader, 'css-loader']
},
{
test: /\.scss$/,
use: [
MiniCssExtractPlugin.loader,
"css-loader",
"sass-loader"
]
},
{
test: /\.(eot|svg|ttf|woff|woff2)$/,
exclude: /node_modules\/(?!(adminator)\/).*/,
use: [
{
loader: 'file-loader',
options: {
name: '../css/[name].[ext]'
}
}
],
}
]
},
plugins: [
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery',
'window.jQuery': 'jquery',
Popper: ['popper.js', 'default'],
}),
new MiniCssExtractPlugin({ filename: '../css/app.css' }),
new CopyWebpackPlugin([{ from: 'static/', to: '../' }])
]
});
and a single line in app.js
:
import "adminator/src/assets/scripts/index";
from adminator-admin-dashboard.
Is it possible to add adminator to an existing laravel project?
from adminator-admin-dashboard.
from adminator-admin-dashboard.
Related Issues (20)
- top right corner's dropdown click event doesn't work if jquery is enabled in HTML template HOT 2
- Bootstrap 5 HOT 1
- Original author attribution HOT 2
- I need just light build version of the Menu HOT 1
- Webpack compilation issue HOT 2
- Charts added using charts.js are not animating on page load (or at any other time). HOT 1
- Uncaught TypeError: can't access property "__k", u is null HOT 1
- Unable to resolve dependencies during npm install HOT 1
- This is useless. Simple web app but too complicated to install. HOT 2
- How to add new js file
- Unable to install due to package dependencies HOT 1
- Not able to plugin to Yii2 Framworks HOT 2
- Is this still maintained? HOT 3
- Bug sidebar menu HOT 2
- Why does it need Python? HOT 3
- Need HTML version HOT 1
- Display code in quick chat
- Setup main.js for project HOT 2
- New html page has no styling HOT 2
- Change background colour HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adminator-admin-dashboard.