Skip to content

Commit

Permalink
feat(menuv): use local js/css resources
Browse files Browse the repository at this point in the history
Former-commit-id: f696161833164932fcb7acf08213cc30597a014b
  • Loading branch information
sebastiendeu committed Mar 15, 2022
1 parent 05f1a2e commit 1cb6c99
Show file tree
Hide file tree
Showing 27 changed files with 45 additions and 21 deletions.
4 changes: 2 additions & 2 deletions lib/menuv/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ exec(`npx webpack${argumentString}`, (err, stdout, stderr) => {
const from_file_path = path.resolve(copy_file.from);
const to_file_path = path.resolve(copy_file.to);

if (copy_file.type == 'file') {
if (copy_file.type === 'file') {
const to_file_path_directory = path.dirname(to_file_path);

if (!fs.existsSync(to_file_path_directory))
Expand Down Expand Up @@ -113,7 +113,7 @@ exec(`npx webpack${argumentString}`, (err, stdout, stderr) => {
}

m.forEach((match, groupIndex) => {
if (groupIndex == 1) {
if (groupIndex === 1) {
const content_path = path.resolve(`${PATHS.SOURCE}/${match}`);

if (fs.existsSync(content_path)) {
Expand Down
7 changes: 7 additions & 0 deletions lib/menuv/source/app/html/assets/vendors/bootstrap.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/menuv/source/app/html/assets/vendors/bulma.min.css

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions lib/menuv/source/app/html/assets/vendors/font-awesome.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/menuv/source/app/html/assets/vendors/modernizr.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions lib/menuv/source/app/html/assets/vendors/normalize.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
16 changes: 6 additions & 10 deletions lib/menuv/source/app/html/menuv.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,15 @@
<title>MenuV</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="pragma" content="no-cache" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.3/css/bootstrap.min.css" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.9.1/css/bulma.min.css" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css" crossorigin="anonymous" />
<link rel="stylesheet" href="./assets/vendors/normalize.min.css" crossorigin="anonymous" />
<link rel="stylesheet" href="./assets/vendors/bootstrap.min.css" crossorigin="anonymous" />
<link rel="stylesheet" href="./assets/vendors/bulma.min.css" crossorigin="anonymous" />
<link rel="stylesheet" href="./assets/vendors/font-awesome.min.css" crossorigin="anonymous" />
<link rel="stylesheet" href="./assets/css/main.css">
<link rel="stylesheet" href="./assets/css/native_theme.css">
</head>
<body>
<div id="menuv"></div>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="./assets/vendors/modernizr.min.js" crossorigin="anonymous"></script>
</body>
</html>
</html>
6 changes: 2 additions & 4 deletions lib/menuv/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ module.exports = {
}),
new COPY_PLUGIN({
patterns: [
{ from: 'source/app/html/assets/css/main.css', to: 'assets/css/main.css' },
{ from: 'source/app/html/assets/css/native_theme.css', to: 'assets/css/native_theme.css' },
{ from: 'source/app/html/assets/fonts/SignPainterHouseScript.woff', to: 'assets/fonts/SignPainterHouseScript.woff' }
{ from: 'source/app/html/assets/', to: 'assets/' },
],
})
],
Expand All @@ -52,4 +50,4 @@ module.exports = {
filename: './assets/js/menuv.js',
path: __dirname + '/dist/'
}
};
};
7 changes: 7 additions & 0 deletions resources/[lib]/menuv/dist/assets/vendors/bootstrap.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions resources/[lib]/menuv/dist/assets/vendors/bulma.min.css

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit 1cb6c99

Please sign in to comment.