Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
746dde8
Main
Code-lab-web Apr 15, 2025
3af5493
Code-lab-web
Code-lab-web Apr 17, 2025
5311b1b
Code-lab-web
Code-lab-web Apr 22, 2025
d3bb269
Implement styled-components for global styles, theme, and responsive …
Code-lab-web Apr 22, 2025
90fe2a3
Code-lab-web
Code-lab-web Apr 23, 2025
860f5f9
git commit -m "Add card component and header component"
Code-lab-web Apr 23, 2025
03315e0
Fix: Resolve issue with App.jsx rendering logic
Code-lab-web Apr 23, 2025
fd1d686
Code-lab-web
Code-lab-web Apr 24, 2025
5571d9d
Refactor App component, update README, and enhance styled-components …
Code-lab-web Apr 24, 2025
864e107
Enhance App component: import React and styled-components, update ind…
Code-lab-web Apr 25, 2025
e995f1c
Git commit-m "Code-lab-web"
Code-lab-web Apr 25, 2025
ee28d62
git commit -m "Code-lab-web"
May 13, 2025
6f242c8
git commit -m "Code-lab-web"
May 13, 2025
99342d6
Code-lab-web
May 13, 2025
b996ccb
git commit -m "Code-lab-web"
Code-lab-web Jul 16, 2025
4821f91
git commit -m "Code-lab-web"
Code-lab-web Jul 16, 2025
612e3ac
Merge remote-tracking branch 'refs/remotes/origin/main'
Jul 21, 2025
24aee83
git commit -m "Code-lab-web"
Jul 21, 2025
8766c84
git commit -m "Code-lab-web"
Jul 22, 2025
67e3998
git commit -m "Code-lab-web"
Jul 22, 2025
97f793b
git commit -m "Code-lab-web"
Jul 22, 2025
e926d1d
git commit -m
Jul 22, 2025
bc6af3a
git commit -m "Code-lab-web"
Jul 22, 2025
6b0ef1c
git commit -m "Code-lab-web"
Jul 22, 2025
0c59610
git commit -m "Code-lab-web"
Jul 24, 2025
15c061a
git commit -m "Code-lab-web"
Jul 24, 2025
e47fb65
git commit -m "Code-lab-web"
Aug 7, 2025
efa9a8f
git commit -m "Code-lab-web"
Aug 8, 2025
ed96630
git commit -m "Code-lab-web"
Aug 8, 2025
81ffc73
git commit -m "Code-lab-web"
Aug 8, 2025
be98c6c
git commit -m "Code-lab-web"
Aug 8, 2025
d6eb158
git commit -m "Code-lab-web"
Aug 12, 2025
6120676
git commit -m "Code-lab-web"
Aug 13, 2025
de96138
git commit -m "Code-lab-web"
Aug 14, 2025
e72302e
git commit -m "Code-lab-web"
Aug 14, 2025
0452316
git commit -m "Code-lab-web"
Aug 14, 2025
da64914
git commit -m "Code-lab-web"
Aug 19, 2025
f55ef74
git commit -m "Code-lab-web"
Aug 19, 2025
e30fe24
git commit -m "Code-lab-web"
Aug 19, 2025
1839e8f
git commit
Aug 19, 2025
75db9c9
git commit -m "Code-lab-web"
Aug 20, 2025
06af6cd
git commit -m "Code-lab-web"
Aug 21, 2025
243f4cd
git commit -m "Code-lab-web"
Aug 21, 2025
e6188dd
git commit -m "Code-lab-web"
Aug 22, 2025
c55606a
git commit -m "Code-lab-web"
Aug 26, 2025
87fe2b5
git commit -m "Code-lab-web"
Aug 27, 2025
79d1ca6
git commit -m "Code-lab-web"
Aug 27, 2025
b1a41ee
git commit -m "Code-lab-web"
Aug 27, 2025
98004c7
git commit -m "Code-lab-web"
Aug 27, 2025
1dce6c4
git commit -m "Code-lab-web"
Aug 28, 2025
541c345
git commit -m "Code-lab-web"
Aug 28, 2025
1050c47
git commit -m "Code-lab-web"
Aug 29, 2025
8f0074c
git commit -m "Code-lab-web"
Aug 29, 2025
ef0b146
git commit -m "Code-lab-web"
Sep 1, 2025
b7c4be4
git commit -m "Code-lab-web"
Sep 2, 2025
17d247e
git commit -m "Code-lab-web"
Sep 2, 2025
c2dcff4
git commit -m "Code-web-web"
Sep 2, 2025
98ba7af
git commit -m "Code-lab-web"
Sep 4, 2025
0e74746
git commit -m "Code-lab-web"
Sep 4, 2025
0cc3611
git commit -m "Code-lab-web"
Sep 5, 2025
699a984
git commit -m "Code-lab-web"
Sep 5, 2025
1d7f592
git commit -m "Code-lab-web"
Sep 5, 2025
ba7e3ec
git commit -m "Code-lab-web"
Sep 5, 2025
77b81dd
git commit -m "Code-lab-web"
Sep 15, 2025
f6f6c0b
git commit -m "Code-lab-web"
Sep 15, 2025
9027897
git commit -m "Code-lab-web"
Sep 15, 2025
3e4af87
git commit -m "Code-lab-web"
Sep 17, 2025
a00206d
git commit -m "Code-lab-web"
Sep 23, 2025
b650593
git commit -m "Code-lab-web"
Sep 23, 2025
15bfb67
git commit -m "Code-lab-web"
Sep 23, 2025
3aca551
git commit -m "Code-lab-web"
Sep 23, 2025
6154fa6
git commit -m "Code-lab-web"
Sep 24, 2025
1ecd7dc
git commit -m "Code-lab-web"
Sep 24, 2025
4a99e6a
git commit -m "Code-lab-web"
Sep 24, 2025
9fbbed6
git commit -m "Code-lab-web"
Sep 25, 2025
c4d3462
git commit -m "Code-lab-web"
Sep 25, 2025
9b81067
git commit -m "Code-lab-web"
Sep 25, 2025
2b77c00
git commit -m "Code-lab-web"
Sep 25, 2025
4bfd5a4
git commit -m "Code-lab-web"
Sep 26, 2025
da9fb87
git commit -m "Code-lab-web"
Oct 1, 2025
16d8608
git commit -m "Code-lab-web"
Oct 1, 2025
59b6ef7
git commit -m "Code-lab-web"
Oct 1, 2025
170823d
git commit -m "Code-lab-web"
Oct 2, 2025
88edefd
git commit -m "Code-lab-web"
Oct 2, 2025
7cf36e8
git commit -m "Code-lab-web"
Oct 6, 2025
e10a425
git commit -m "Code-lab-web"
Oct 6, 2025
4462fd0
git commit -m "Code-lab-web"
Oct 7, 2025
7ba9e12
git commit -m "Code-lab-web"
Oct 7, 2025
62fd13e
git commit -m "Code-lab-web"
Oct 7, 2025
ba0b12d
git commit -m "Code-lab-web"
Oct 8, 2025
59cfd7d
git commit -m "Code-lab-web"
Oct 8, 2025
2366e0d
git commit -m "Code-lab-web"
Oct 8, 2025
588f8c1
git commit -m "Code-lab-web"
Oct 9, 2025
81dde8a
git commit -m "Code-lab-web"
Oct 9, 2025
bb5aae9
git commit -m "Code-lab-web"
Oct 14, 2025
157e9e7
git commit -m "Code-lab-web"
Oct 14, 2025
bf00104
git commit -m "Code-lab-web"
Nov 6, 2025
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
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presents": ["@babel/present-env"]
}
5 changes: 5 additions & 0 deletions .babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"presets": [...],
"plugins": [...]
}
{ "extends": "../../.babelrc" }
2 changes: 2 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
> 0.25%
not dead
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@ package-lock.json
*.ntvs*
*.njsproj
*.sln
*.sw?
*.sw?
.env
# Local Netlify folder
.netlify
30 changes: 30 additions & 0 deletions .idx/dev.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{pkgs}: {
channel = "stable-24.05";
packages = [
pkgs.nodejs_20
pkgs.python312Packages.pip
pkgs.busybox
pkgs.nox
];
idx.extensions = [
"svelte.svelte-vscode"
"vue.volar"
];
idx.previews = {
previews = {
web = {
command = [
"npm"
"run"
"dev"
"--"
"--port"
"$PORT"
"--host"
"0.0.0.0"
];
manager = "web";
};
};
};
}
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# Portfolio
#Global-Tech-Portfolio
A/RES/217(III)
A/RES/70/1
GDPR EU 2016/679
The AI Act
WCAG
Empty file added To
Empty file.
1 change: 1 addition & 0 deletions [
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
more is not installed, but available in the following packages, pick one to run it, Ctrl+C to cancel.
4 changes: 4 additions & 0 deletions a.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
var a = new Promise();
import "core-js/modules/es.promise";
var a = new Promise();
var a = new Promise();
154 changes: 154 additions & 0 deletions api.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
import React, { StrictMode } from 'react';
import ReactDOM from 'react-dom';
import styled, { ThemeProvider, DefaultTheme } from 'styled-components';

declare module 'styled-components' {
export interface DefaultTheme {
color?: string;
bg?: string;
}
}
import { createRoot } from 'react-dom/client'

const Button = styled.button`
background: #BF4F74;
border-radius: 3px;
border: none;
color: white;
`

const TomatoButton = styled(Button)`
background: tomato;
`

const container1 = document.createElement('div');
document.body.appendChild(container1);

const root1 = createRoot(container1);
root1.render(
<React.StrictMode>
<>
<Button>I'm purple.</Button>
<br />
<TomatoButton>I'm red.</TomatoButton>
</>
</React.StrictMode>
);
// import styled from 'styled-components'

const padding = '3em'

const Section = styled.section<{ $background?: string; }>`
color: white;

/* Pass variables as inputs */
padding: ${padding};
background: ${(props) => props.$background || 'transparent'};
`;

const container2 = document.createElement('div');
document.body.appendChild(container2);

const root2 = createRoot(container2);
root2.render(
<React.Fragment>
<Section $background="royalblue">
<Component as="button" onClick={() => alert('It works!')}>
Click Me!
</Component>
<Component>
Hello Recruiter!
</Component>
<Comp draggableColor="red" draggable="true">
Drag me!
</Comp>
<Comp hidden>
Drag Me!
</Comp>
</Section>
</React.Fragment>
);
// import styled from 'styled-components'

const Input = styled.input.attrs<{ padding?: string | number; small?: boolean }>((props) => ({
small: props.small || false,
type: 'text',
size: props.small ? 5 : undefined,
}))<{ padding?: string | number; small?: boolean }>`
border-radius: 3px;
border: 1px solid #BF4F74;
display: block;
margin: 0 0 1em;
padding: ${(props) => (typeof props.padding === 'number' ? `${props.padding}em` : props.padding)};

::placeholder {
::placeholder {
color: #BF4F74;
}
`;
`;

// Ensure the target element exists in the HTML file
const rootElement = document.getElementById('root');
ReactDOM.render(
<React.Fragment>
<Input padding={1} small={true} placeholder="Small" />
<Input padding={1} small={true} placeholder="Another Small" />
</React.Fragment>,
rootElement
);
rootElement
// Removed extraneous closing brace
// import styled from "styled-components";

const Component = styled.div`
color: red;
`;
<Component
as="button"
onClick={() => alert('It works!')}
>
{/* Removed duplicate render call and fixed syntax */}
</Component>
{/* Removed duplicate render call and fixed syntax */}
</Component>

// Removed duplicate and incomplete render logic
// Removed duplicate render call
// Removed redundant line
// import styled, { ThemeProvider } from 'styled-components'

const Box1 = styled.div`
color: ${(props) => props.theme?.color || 'black'};
`;

const rootElement1 = document.getElementById('root');
if (rootElement1) {
const root1 = createRoot(rootElement1);
root1.render(
<ThemeProvider theme={{ color: 'mediumseagreen' }}>
<Box1>{"I'm mediumseagreen!"}</Box1>
</ThemeProvider>
);

// import styled, { ThemeProvider } from 'styled-components'
// Removed incomplete and unused statement
);

const Box2 = styled.div`
background: ${(props) => props.theme?.bg || 'transparent'};
`;
const rootElement = document.getElementById('root');
const rootElement2 = document.getElementById('root');
if (rootElement2) {
const root2 = createRoot(rootElement2);
root2.render(
<ThemeProvider theme={{ bg: 'white', color: 'mediumseagreen' }}>
<Box2>
{"I'm mediumseagreen with a white background!"}
</Box2>
</ThemeProvider>
);
</ThemeProvider>
);
}
68 changes: 68 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
require('dotenv').config();

var createError = require('http-errors');
var express = require('express');
var path = require('path');
var cookieParser = require('cookie-parser');
var logger = require('morgan');
var logger = require('morgan');
var session = require('express-session');
var session = require('express-session');
var passport = require('passport');
var SQLiteStore = require('connect-sqlite3')(session);
var session = require('express-session');
var passport = require('passport');
var SQLiteStore = require('connect-sqlite3')(session);
var indexRouter = require('./routes/index');

var authRouter = require('./routes/auth');

var app = express();

app.locals.pluralize = require('pluralize');

// view engine setup
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'ejs');

app.use(logger('dev'));
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(cookieParser());
app.use('/', indexRouter);
app.use('/', authRouter);
app.use(express.static(path.join(__dirname, 'public')));
app.use(express.static(path.join(__dirname, 'public')));

app.use(session({
secret: 'keyboard cat',
resave: false,
saveUninitialized: false,
store: new SQLiteStore({ db: 'sessions.db', dir: './var/db' })
}));
app.use('/', indexRouter);
app.use('/', authRouter);
app.use(session({
secret: 'keyboard cat',
resave: false,
saveUninitialized: false,
store: new SQLiteStore({ db: 'sessions.db', dir: './var/db' })
}));
app.use(passport.authenticate('session'));
// catch 404 and forward to error handler
app.use(function(req, res, next) {
next(createError(404));
});

// error handler
app.use(function(err, req, res, next) {
// set locals, only providing error in development
res.locals.message = err.message;
res.locals.error = req.app.get('env') === 'development' ? err : {};

// render the error page
res.status(err.status || 500);
res.render('error');
});

module.exports = app;
Binary file added autorestic
Binary file not shown.
4 changes: 4 additions & 0 deletions b.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
var b = new Map();
import "core-js/modules/es.map";
var b = new Map();
var b = new Map();
28 changes: 28 additions & 0 deletions babel-plugin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// a naive plugin replace `a.b` to `a != null && a.b`
module.exports = api => {
const targets = api.targets();
// The targets have native optional chaining support
// if `transform-optional-chaining` is _not_ required
const optionalChainingSupported = !isRequired(
"transform-optional-chaining",
targets
);
const visited = new WeakSet();
return {
visitor: {
MemberExpression(path) {
if (path.matchesPattern("a.b")) {
if (visited.has(path.node)) return;
visited.add(path.node);
if (optionalChainingSupported) {
// When optional chaining is supported,
// output `a?.b` instead of `a != null && a.b`
path.replaceWith(api.templates`a?.b`);
} else {
path.replaceWith(api.templates`a != null && ${path.node}`);
}
}
},
},
};
};
Loading