diff --git a/extensions/definitions.js b/extensions/definitions.js
index c8fdd3b..c71978a 100644
--- a/extensions/definitions.js
+++ b/extensions/definitions.js
@@ -2,13 +2,14 @@ browser.runtime.onMessage.addListener((message) => {
if (message.type === "MY_GET_URL_R") {
window.postMessage(message);
} else if (message.type === "GET_DATA_FROM_PAGE") {
- const company = document
- .querySelector('header[data-test="job-details-header"]')
+ const company = document.querySelector('header[data-test="job-details-header"]')
.children[0].children[0].querySelector("h4").innerHTML;
const jobTitle = document
.querySelector('header[data-test="job-details-header"]')
.querySelector("h1").innerHTML;
+ const description = [...document.querySelector('header[data-test="job-details-header"]').parentNode.querySelectorAll('button')].filter(a => a.textContent == "Show more")[0]?.parentNode?.parentNode?.textContent;
+
let money = ""
const moneySectionNode = document.querySelector('section>section');
@@ -16,7 +17,7 @@ browser.runtime.onMessage.addListener((message) => {
money = moneySectionNode.querySelector("div>div>div").children[1]?.textContent ?? ''
}
- browser.runtime.sendMessage({ type: "GOT_INFO_R", company, jobTitle, money });
+ browser.runtime.sendMessage({ type: "GOT_INFO_R", company, jobTitle, money, description });
} else if (message.type === "GOT_INFO_R") {
window.postMessage(message);
}
@@ -26,7 +27,6 @@ window.addEventListener("message", (e) => {
if (e.data.type === "MY_GET_URL") {
browser.runtime.sendMessage({ type: "MY_GET_URL" });
} else if (e.data.type === "HAS_EXTENSION_Q") {
- console.log("Got request for ext");
window.postMessage({ type: "HAS_EXTENSION" });
} else if (e.data.type === "REGISTER_INTEREST") {
browser.runtime.sendMessage({ type: "REGISTER_INTEREST" });
diff --git a/site/src/routes/+page.svelte b/site/src/routes/+page.svelte
index 1ecb591..b551b75 100644
--- a/site/src/routes/+page.svelte
+++ b/site/src/routes/+page.svelte
@@ -10,8 +10,8 @@
-
-
+
diff --git a/site/src/routes/ApplicationsList.svelte b/site/src/routes/ApplicationsList.svelte
index 45d0263..63df8e8 100644
--- a/site/src/routes/ApplicationsList.svelte
+++ b/site/src/routes/ApplicationsList.svelte
@@ -9,7 +9,7 @@
});
-
+
To Apply
-
-
+
I am a dedicated and versatile programmer with four years of professional
experience.
@@ -169,7 +175,7 @@
Senior Software Developer @ Planum Solucoes
-
4 year - May 2020 - Present
+
4 years - May 2020 - Present
Developed various projects:
- Developing various websites using React and Svelte.
diff --git a/site/src/routes/work-area/NewUrlDialog.svelte b/site/src/routes/work-area/NewUrlDialog.svelte
index 61334bb..34c58e5 100644
--- a/site/src/routes/work-area/NewUrlDialog.svelte
+++ b/site/src/routes/work-area/NewUrlDialog.svelte
@@ -4,7 +4,6 @@
let {
dialog = $bindable(),
- openWindow = $bindable(),
onreload,
id
}: {
@@ -41,7 +40,6 @@
function onMessage(e: MessageEvent) {
if (e.data.type === 'MY_GET_URL_R') {
if (e.data.error) {
- console.log(e.data);
if (e.data.data.length === 0) {
console.log('TODO inform user to mark page');
} else {
@@ -58,7 +56,6 @@
});
} else if (e.data.type === 'HAS_EXTENSION') {
hasExtension = true;
- console.log('got ext');
}
if (!hasExtension) {
@@ -66,8 +63,6 @@
}
}
- console.log('setting up');
-
window.addEventListener('message', onMessage);
return () => {
window.removeEventListener('message', onMessage);
@@ -75,7 +70,6 @@
});
function askForUrl() {
- console.log('sending');
window.postMessage({ type: 'MY_GET_URL' });
}
diff --git a/site/src/routes/work-area/WorkArea.svelte b/site/src/routes/work-area/WorkArea.svelte
index b21766b..18ad99f 100644
--- a/site/src/routes/work-area/WorkArea.svelte
+++ b/site/src/routes/work-area/WorkArea.svelte
@@ -19,8 +19,6 @@
let extractTokens: HTMLDialogElement;
let changeUrl: HTMLDialogElement;
- let preparingToDrop = $state(false);
-
let lastExtData: any = $state(undefined);
async function activate(item?: Application) {
@@ -121,8 +119,19 @@
activeItem.company = lastExtData.company;
activeItem.payrange = lastExtData.money;
window.requestAnimationFrame(() => {
- save();
- lastExtData = undefined;
+ save().then(async () => {
+ if (!lastExtData.description) {
+ lastExtData = undefined;
+ return;
+ }
+ await post('application/text/flair', {
+ id: activeItem?.id ?? '',
+ text: lastExtData.description,
+ });
+ loadActive();
+ lastExtData = undefined;
+ });
+
});
}
@@ -194,7 +203,7 @@
);
-
+
{#if activeItem && (!applicationStore.dragging || applicationStore.dragging?.id === activeItem.id)}
{#if activeItem.status != 1}
@@ -344,7 +353,7 @@
{#if applicationStore.dragging}
-
+
{
e.preventDefault();
}}
@@ -420,7 +429,7 @@
class:animate-bounce={applicationStore.dragging}
>
- Drop Application To Apply To.
+ Drop Application To Manage
{/if}