Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ft add favicon #124

Merged
merged 29 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
2f0727f
fix: remove placeholder property
ceelogre Aug 28, 2024
9957bd4
add favicon svg
Philimuhire Sep 11, 2024
919a0f9
added favicon
Philimuhire Sep 12, 2024
877fc23
removed unneccessary added port number
Philimuhire Sep 15, 2024
2f0feac
resolved conflicts
Philimuhire Sep 15, 2024
257dda3
resolved conflicts
Philimuhire Sep 15, 2024
050cd5c
resolved conflicts
Philimuhire Sep 15, 2024
fcf0279
add favicon svg
Philimuhire Sep 11, 2024
46434bd
resolved conflicts
Philimuhire Sep 15, 2024
4beab71
removed unneccessary added port number
Philimuhire Sep 15, 2024
96a1145
resolved conflicts
Philimuhire Sep 15, 2024
45f3921
resolved conflicts
Philimuhire Sep 15, 2024
c563534
resolved conflicts
Philimuhire Sep 16, 2024
1882066
added favicon
Philimuhire Sep 12, 2024
6733149
removed unneccessary added port number
Philimuhire Sep 15, 2024
92b4081
Merge branch 'ft-add-favicon' of https://github.com/atlp-rwanda/atlp-…
Philimuhire Sep 16, 2024
3ec2438
resolved conflicts
Philimuhire Sep 16, 2024
bb4fa7b
resolved conflicts
Philimuhire Sep 16, 2024
df3ecfa
resolved conflicts
Philimuhire Sep 16, 2024
238239d
added favicon
Philimuhire Sep 12, 2024
ce619bf
removed unneccessary added port number
Philimuhire Sep 15, 2024
9afe1bc
resolved conflicts
Philimuhire Sep 16, 2024
a969c1c
resolved conflicts
Philimuhire Sep 16, 2024
25b7d55
resolved conflicts
Philimuhire Sep 16, 2024
4a1c92a
Merge branch 'ft-add-favicon' of https://github.com/atlp-rwanda/atlp-…
Philimuhire Sep 16, 2024
31289f9
resolved conflicts
Philimuhire Sep 20, 2024
f8a269d
resolved conflicts
Philimuhire Sep 21, 2024
80c5658
resolved conflicts
Philimuhire Sep 21, 2024
8874ee2
resolved conflicts
Philimuhire Sep 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="assets/favicon.ico" type="image/x-icon">
<title>Devpulse</title>
<script src="https://npmcdn.com/axios/dist/axios.min.js"></script>
<script src="https://accounts.google.com/gsi/client" async defer></script>
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"@typescript-eslint/eslint-plugin": "^5.47.0",
"autoprefixer": "^10.4.7",
"babel-loader": "^8.2.5",
"copy-webpack-plugin": "^12.0.2",
"css-loader": "^6.7.1",
"dotenv": "^16.0.3",
"eslint": "^8.30.0",
Expand All @@ -49,7 +50,7 @@
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.31.11",
"file-loader": "^6.2.0",
"html-webpack-plugin": "^5.5.0",
"html-webpack-plugin": "^5.6.0",
"i": "^0.3.7",
"node-polyfill-webpack-plugin": "^2.0.1",
"npm": "^8.19.2",
Expand Down Expand Up @@ -89,6 +90,7 @@
"browser": "^0.2.6",
"date-fns": "^2.29.3",
"dotenv": "^16.0.3",
"express": "^4.21.0",
"flowbite": "^1.5.3",
"flowbite-react": "^0.6.4",
"formik": "^2.4.3",
Expand All @@ -103,8 +105,9 @@
"jwt-decode": "^3.1.2",
"mini-css-extract-plugin": "^2.6.1",
"moment": "^2.29.4",
"next-link": "^2.0.0",
Philimuhire marked this conversation as resolved.
Show resolved Hide resolved
"next-preload-headers": "^3.0.4",
"patch-package": "^6.4.7",
"path": "^0.12.7",
"popper.js": "^1.16.1",
"react-datepicker": "^4.8.0",
"react-hook-form": "^7.45.4",
Expand Down
Binary file added public/favicon.ico
Binary file not shown.
7 changes: 1 addition & 6 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,8 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta name="theme-color" content="#000000" />

<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />

<title>React App</title>
Expand Down
Binary file added src/assets/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion src/components/roles&permissions/ListAllUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -880,4 +880,4 @@ const ListAllUsers: FunctionComponent<Props> = (props) => {
);
};

export default ListAllUsers;
export default ListAllUsers;
2 changes: 1 addition & 1 deletion src/pages/updateTrainee/traineUpdate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -723,4 +723,4 @@ const mapState = (allCycles: any) => ({

export default connect(mapState, {
getAllCycles,
})(TraineeUpdate);
})(TraineeUpdate);
129 changes: 70 additions & 59 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,71 +1,82 @@
const HtmlWebpackPlugin = require("html-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const CopyWebpackPlugin = require('copy-webpack-plugin');
const path = require("path");
const dotenv = require("dotenv");
const webpack = require("webpack");
module.exports = () => {
dotenv.config();
const prod = process.env.NODE_ENV === "production";
return {
mode: prod ? "production" : "development",
entry: "./src/index.tsx",
output: {
path: path.resolve(__dirname, "build/"),
publicPath: "/",

dotenv.config();

const prod = process.env.NODE_ENV === "production";

module.exports = {
mode: prod ? "production" : "development",
entry: "./src/index.tsx",
output: {
path: path.resolve(__dirname, "build/"),
filename: "bundle.js",
publicPath: "/",
},
devServer: {
historyApiFallback: true,
port: 3000,
compress: true,
allowedHosts: "all",
},
resolve: {
extensions: [".js", ".json", ".tsx", ".ts", ".svg"],
fallback: {
zlib: require.resolve("browserify-zlib"),
https: require.resolve("https-browserify"),
http: require.resolve("stream-http"),
},
devServer: {
historyApiFallback: true,
port: 3000,
compress: true,
allowedHosts: ["all"],
alias: {
process: "process/browser",
stream: "stream-browserify",
},
resolve: {
fallback: {
zlib: require.resolve("browserify-zlib"),
https: require.resolve("https-browserify"),
http: require.resolve("stream-http"),
},
module: {
rules: [
{
test: /\.(tsx|ts)$/,
exclude: /node_modules/,
use: "ts-loader",
},
alias: {
process: "process/browser",
stream: "stream-browserify",
{
test: /\.css$/,
use: [MiniCssExtractPlugin.loader, "css-loader", "postcss-loader"],
},
alias: {
process: "process/browser",
stream: "stream-browserify",
},
},
module: {
rules: [
{
test: /\.(tsx|ts)$/,
exclude: /node_modules/,
resolve: {
extensions: [".js", ".json", ".tsx", ".ts", ".svg"],
{
test: /\.(png|jpe?g|svg|gif)$/,
use: [
{
loader: 'file-loader',
options: {
name: 'assets/[name].[hash].[ext]',
outputPath: 'assets/',
publicPath: 'assets/',
},
},
use: "ts-loader",
},
{
test: /\.css$/,
use: [MiniCssExtractPlugin.loader, "css-loader", "postcss-loader"],
},
{
test: /\.(png|jp(e*)g|svg|gif)$/,
use: ["file-loader"],
},
],
},
devtool: prod ? undefined : "source-map",
plugins: [
new HtmlWebpackPlugin({
template: "index.html",
}),
new MiniCssExtractPlugin(),
new webpack.DefinePlugin({
"process.env": JSON.stringify(process.env),
}),
new webpack.ProvidePlugin({
process: "process/browser",
}),
],
},
],
};
},
devtool: prod ? undefined : "source-map",
plugins: [
new HtmlWebpackPlugin({
template: path.resolve(__dirname, "index.html"),
}),
new MiniCssExtractPlugin(),
new webpack.DefinePlugin({
"process.env": JSON.stringify(process.env),
}),
new webpack.ProvidePlugin({
process: "process/browser",
}),
new CopyWebpackPlugin({
patterns: [
{ from: 'src/assets/', to: 'assets/' },
],
}),
],
};
Loading