From 5f78e8c58a4e8d94fc51270cacaa4b2d89adfe0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B3=E5=85=83=E7=9A=93?= Date: Sun, 18 May 2025 09:28:08 +0800 Subject: [PATCH] Mainly make the python code to make it javascript for nuxt to access. Python is just used for testing stuff, as it is a fine lang to do so. --- bun.lock | 5 +++++ components/app/windows/chatbot.vue | 1 + components/app/windows/sources.vue | 14 ++++++++++++++ components/blurPageBeforeLogin.vue | 2 +- package.json | 1 + public/agents.txt | 2 ++ scraping/platforms/line_today.py | 2 ++ server/api/user/logout.ts | 23 ++++++++++++++++++++++- server/scrape/line_today.ts | 23 +++++++++++++++++++++++ 9 files changed, 71 insertions(+), 2 deletions(-) create mode 100644 public/agents.txt create mode 100644 server/scrape/line_today.ts diff --git a/bun.lock b/bun.lock index e4c958d..66eb883 100644 --- a/bun.lock +++ b/bun.lock @@ -27,6 +27,7 @@ "groq-sdk": "^0.21.0", "gsap": "^3.13.0", "html-to-json-parser": "^2.0.1", + "jssoup": "^0.0.15", "lucide-vue-next": "^0.508.0", "motion-v": "^1.1.0-alpha.1", "nuxt": "^3.17.2", @@ -1370,6 +1371,8 @@ "html-to-json-parser": ["html-to-json-parser@2.0.1", "", { "dependencies": { "@xmldom/xmldom": "^0.8.10" } }, "sha512-M5m9PnTRbIQCSpj13mecIUThKgWnxDhjEYCjo2PgadXUbYhvJsjY/tyf5AeJDnw0/UPRVAh85VzCxH1bXEX9rw=="], + "htmlparser": ["htmlparser@1.7.7", "", {}, "sha512-zpK66ifkT0fauyFh2Mulrq4AqGTucxGtOhZ8OjkbSfcCpkqQEI8qRkY0tSQSJNAQ4HUZkgWaU4fK4EH6SVH9PQ=="], + "http-assert": ["http-assert@1.5.0", "", { "dependencies": { "deep-equal": "~1.0.1", "http-errors": "~1.8.0" } }, "sha512-uPpH7OKX4H25hBmU6G1jWNaqJGpTXxey+YOUizJUAgu0AjLUeC8D73hTrhvDS5D+GJN1DN1+hhc/eF/wpxtp0w=="], "http-errors": ["http-errors@2.0.0", "", { "dependencies": { "depd": "2.0.0", "inherits": "2.0.4", "setprototypeof": "1.2.0", "statuses": "2.0.1", "toidentifier": "1.0.1" } }, "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ=="], @@ -1496,6 +1499,8 @@ "jsonfile": ["jsonfile@6.1.0", "", { "dependencies": { "universalify": "^2.0.0" }, "optionalDependencies": { "graceful-fs": "^4.1.6" } }, "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ=="], + "jssoup": ["jssoup@0.0.15", "", { "dependencies": { "htmlparser": "^1.7.7" } }, "sha512-9/7qzZQ878Jey0JyNTuy1NYE8Y4G5PbpWQ5hS8vlBD2Ar4MKJNMQ0239yjb+WExRNLiYPSgZSVLyFUwQNWa1ag=="], + "junk": ["junk@4.0.1", "", {}, "sha512-Qush0uP+G8ZScpGMZvHUiRfI0YBWuB3gVBYlI0v0vvOJt5FLicco+IkP0a50LqTTQhmts/m6tP5SWE+USyIvcQ=="], "jwt-decode": ["jwt-decode@4.0.0", "", {}, "sha512-+KJGIyHgkGuIq3IEBNftfhW/LfWhXUIY6OmyVWjliu5KH1y0fw7VQ8YndE2O4qZdMSd9SqbnC8GOcZEy0Om7sA=="], diff --git a/components/app/windows/chatbot.vue b/components/app/windows/chatbot.vue index 63e9945..0ded4f0 100644 --- a/components/app/windows/chatbot.vue +++ b/components/app/windows/chatbot.vue @@ -25,6 +25,7 @@ const inputMessage = ref(); const messages = ref([]); const messageIndex = ref(); const aiGenerating = ref(false); + // Great, there are now no errors ig const emit = defineEmits(["windowopener", "error", "loadValue"]); const props = defineProps<{ diff --git a/components/app/windows/sources.vue b/components/app/windows/sources.vue index 60feff3..6faf8d3 100644 --- a/components/app/windows/sources.vue +++ b/components/app/windows/sources.vue @@ -1,6 +1,8 @@