Skip to content

Commit

Permalink
Merge pull request #167 from krausvo1/upgrade-ui
Browse files Browse the repository at this point in the history
Upgrade wrensec-ui to version 23 in UI modules.
  • Loading branch information
pavelhoral authored Mar 4, 2024
2 parents 3aa9f53 + ac5d7ee commit 86a2e60
Show file tree
Hide file tree
Showing 104 changed files with 28,019 additions and 5,101 deletions.
3 changes: 2 additions & 1 deletion openam-oauth2/src/main/resources/templates/CodeThanks.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
~ information: "Portions copyright [year] [name of copyright owner]".
~
~ Copyright 2015 ForgeRock AS.
~ Portions copyright 2024 Wren Security.
-->
<html lang="en">
<head>
Expand All @@ -34,6 +35,6 @@
done: true
};
</script>
<script data-main="${baseUrl?html}/XUI/main-device" src="${baseUrl?html}/XUI/libs/requirejs-2.1.14-min.js"></script>
<script data-main="${baseUrl?html}/XUI/main-device" src="${baseUrl?html}/XUI/libs/requirejs.js"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
~ information: "Portions copyright [year] [name of copyright owner]".
~
~ Copyright 2015 ForgeRock AS.
~ Portions copyright 2024 Wren Security.
-->
<html lang="en">
<head>
Expand All @@ -34,6 +35,6 @@
baseUrl : "${baseUrl?js_string}/XUI"
};
</script>
<script data-main="${baseUrl?html}/XUI/main-device" src="${baseUrl?html}/XUI/libs/requirejs-2.1.14-min.js"></script>
<script data-main="${baseUrl?html}/XUI/main-device" src="${baseUrl?html}/XUI/libs/requirejs.js"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
~ "Portions Copyrighted [year] [name of copyright owner]"
~
~ Portions Copyrighted 2014 Nomura Research Institute, Ltd
~ Portions copyright 2024 Wren Security.
-->
<html lang="en">
<head>
Expand Down Expand Up @@ -61,6 +62,6 @@
}
};
</script>
<script data-main="${baseUrl?html}/XUI/main-authorize" src="${baseUrl?html}/XUI/libs/requirejs-2.1.14-min.js"></script>
<script data-main="${baseUrl?html}/XUI/main-authorize" src="${baseUrl?html}/XUI/libs/requirejs.js"></script>
</body>
</html>
3 changes: 2 additions & 1 deletion openam-oauth2/src/main/resources/templates/page/error.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
~ "Portions Copyrighted [year] [name of copyright owner]"
~
~ Portions Copyrighted 2014 Nomura Research Institute, Ltd
~ Portions copyright 2024 Wren Security.
-->
<html lang="en">
<head>
Expand Down Expand Up @@ -53,6 +54,6 @@
}
</#if>
</script>
<script data-main="${baseUrl?html}/XUI/main-authorize" src="${baseUrl?html}/XUI/libs/requirejs-2.1.14-min.js"></script>
<script data-main="${baseUrl?html}/XUI/main-authorize" src="${baseUrl?html}/XUI/libs/requirejs.js"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
~ "Portions Copyrighted [year] [name of copyright owner]"
~
~ Portions Copyrighted 2014 Nomura Research Institute, Ltd
~ Portions copyright 2024 Wren Security.
-->
<html lang="en">
<head>
Expand Down Expand Up @@ -60,6 +61,6 @@
}
};
</script>
<script data-main="${baseUrl?html}/XUI/main-authorize" src="${baseUrl?html}/XUI/libs/requirejs-2.1.14-min.js"></script>
<script data-main="${baseUrl?html}/XUI/main-authorize" src="${baseUrl?html}/XUI/libs/requirejs.js"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
~ "Portions Copyrighted [year] [name of copyright owner]"
~
~ Portions Copyrighted 2014 Nomura Research Institute, Ltd
~ Portions copyright 2024 Wren Security.
-->
<html lang="en">
<head>
Expand Down Expand Up @@ -60,6 +61,6 @@
}
};
</script>
<script data-main="${baseUrl?html}/XUI/main-authorize" src="${baseUrl?html}/XUI/libs/requirejs-2.1.14-min.js"></script>
<script data-main="${baseUrl?html}/XUI/main-authorize" src="${baseUrl?html}/XUI/libs/requirejs.js"></script>
</body>
</html>
58 changes: 0 additions & 58 deletions openam-ui/openam-ui-api/Gruntfile.js

This file was deleted.

48 changes: 48 additions & 0 deletions openam-ui/openam-ui-api/gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
* The contents of this file are subject to the terms of the Common Development and
* Distribution License (the License). You may not use this file except in compliance with the
* License.
*
* You can obtain a copy of the License at legal/CDDLv1.1.txt. See the License for the
* specific language governing permission and limitations under the License.
*
* When distributing Covered Software, include this CDDL Header Notice in each file and include
* the License file at legal/CDDLv1.1.txt. If applicable, add the following below the CDDL
* Header, with the fields enclosed by brackets [] replaced by your own identifying
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2024 Wren Security.
*/

const {
useLocalResources,
} = require("@wrensecurity/commons-ui-build");
const gulp = require("gulp");
const { dirname } = require("path");

const TARGET_PATH = "target/www";
const DEPLOY_DIR = `${process.env.OPENAM_HOME}/api`;

gulp.task("build:assets", useLocalResources({ "src/main/resources/**": "" }, { dest: TARGET_PATH }));

gulp.task("build:swagger", () => {
const baseDir = dirname(require.resolve("swagger-ui-dist/swagger-ui-bundle.js"));
return gulp.src([
`${baseDir}/swagger-ui-bundle.{js,js.map}`,
`${baseDir}/swagger-ui-standalone-preset.{js,js.map}`,
`${baseDir}/*.css`,
`${baseDir}/*.{png,gif,jpg,ico,svg,ttf,eot,woff}`,
], { base: baseDir }).pipe(gulp.dest(TARGET_PATH));
});

gulp.task("build", gulp.parallel(
"build:assets",
"build:swagger",
));

gulp.task("deploy", () => gulp.src(`${TARGET_PATH}/**/*`).pipe(gulp.dest(DEPLOY_DIR)));

gulp.task("dev", gulp.series("build", "deploy"));
gulp.task("prod", gulp.series("build"));

gulp.task("default", gulp.series("dev"));
Loading

0 comments on commit 86a2e60

Please sign in to comment.