update version 2.0
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"manifest_version": 3,
|
||||
"name": "Auto post facebook extensions",
|
||||
"version": "1.4",
|
||||
"version": "2.0",
|
||||
"action": {
|
||||
"default_popup": "index.html",
|
||||
"default_icon": {
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
function a(e,r=[]){return Object.entries(e).reduce((t,[n,o])=>((o||r.includes(n))&&(t[n]=o),t),{})}function u(e){return new Promise(r=>setTimeout(r,e))}function s(e,r){const t=Math.floor(Math.random()*(r-e+1))+e;return u(t)}export{u as a,s as d,a as r};
|
||||
|
|
@ -1 +0,0 @@
|
|||
class s{static ID_EXTENSION="ex-root"}export{s as C};
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import{g as gh}from"./_commonjsHelpers-CqkleIqs.js";import{p as Ga,a as S0,r as m1}from"./app-BbB6QE4i.js";import{c as p1,a as Ye,m as yh,C as v1}from"./contants-Ds_B-epI.js";function g1(n,a){for(var s=0;s<a.length;s++){const i=a[s];if(typeof i!="string"&&!Array.isArray(i)){for(const l in i)if(l!=="default"&&!(l in n)){const u=Object.getOwnPropertyDescriptor(i,l);u&&Object.defineProperty(n,l,u.get?u:{enumerable:!0,get:()=>i[l]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var Ed={exports:{}},ho={};/**
|
||||
import{g as gh}from"./_commonjsHelpers-CqkleIqs.js";import{p as Ga,a as S0,r as m1}from"./app-DI32vYIw.js";import{c as p1,a as Ye,m as yh,C as v1}from"./contants-Ds_B-epI.js";function g1(n,a){for(var s=0;s<a.length;s++){const i=a[s];if(typeof i!="string"&&!Array.isArray(i)){for(const l in i)if(l!=="default"&&!(l in n)){const u=Object.getOwnPropertyDescriptor(i,l);u&&Object.defineProperty(n,l,u.get?u:{enumerable:!0,get:()=>i[l]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var Ed={exports:{}},ho={};/**
|
||||
* @license React
|
||||
* react-jsx-runtime.production.js
|
||||
*
|
||||
|
|
@ -1 +1 @@
|
|||
import{R as c,j as s,Q as u,q as l,P as d}from"./popup-D7Kw3eOc.js";import"./_commonjsHelpers-CqkleIqs.js";import"./app-BbB6QE4i.js";import"./contants-Ds_B-epI.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(e){if(e.ep)return;e.ep=!0;const r=n(e);fetch(e.href,r)}})();c.createRoot(document.getElementById("root")).render(s.jsx(u,{client:l,children:s.jsx(d,{})}));
|
||||
import{R as c,j as s,Q as u,q as l,P as d}from"./popup-CMXtuCqt.js";import"./_commonjsHelpers-CqkleIqs.js";import"./app-DI32vYIw.js";import"./contants-Ds_B-epI.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(e){if(e.ep)return;e.ep=!0;const r=n(e);fetch(e.href,r)}})();c.createRoot(document.getElementById("root")).render(s.jsx(u,{client:l,children:s.jsx(d,{})}));
|
||||
|
|
@ -1 +1 @@
|
|||
import{r as m,j as o,T as b,R as j,Q as E,q as T,P as C}from"../assets/popup-D7Kw3eOc.js";import{C as w}from"../assets/contants-Ds_B-epI.js";import"../assets/_commonjsHelpers-CqkleIqs.js";import"../assets/app-BbB6QE4i.js";var I=(t,n,d,a,i,r,u,p)=>{let s=document.documentElement,h=["light","dark"];function c(e){(Array.isArray(t)?t:[t]).forEach(l=>{let g=l==="class",S=g&&r?i.map(y=>r[y]||y):i;g?(s.classList.remove(...S),s.classList.add(r&&r[e]?r[e]:e)):s.setAttribute(l,e)}),x(e)}function x(e){p&&h.includes(e)&&(s.style.colorScheme=e)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(a)c(a);else try{let e=localStorage.getItem(n)||d,l=u&&e==="system"?v():e;c(l)}catch{}},N=m.createContext(void 0),R={setTheme:t=>{},themes:[]},k=()=>{var t;return(t=m.useContext(N))!=null?t:R};m.memo(({forcedTheme:t,storageKey:n,attribute:d,enableSystem:a,enableColorScheme:i,defaultTheme:r,value:u,themes:p,nonce:s,scriptProps:h})=>{let c=JSON.stringify([d,n,r,t,p,u,a,i]).slice(1,-1);return m.createElement("script",{...h,suppressHydrationWarning:!0,nonce:typeof window>"u"?s:"",dangerouslySetInnerHTML:{__html:`(${I.toString()})(${c})`}})});const M=({...t})=>{const{theme:n="system"}=k();return o.jsx(b,{theme:n,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...t})},f=document.getElementById(w.ID_EXTENSION);f&&j.createRoot(f).render(o.jsx(o.Fragment,{children:o.jsxs(E,{client:T,children:[o.jsx("div",{className:"fixed bottom-20 right-6 ex-root",children:o.jsx(C,{})}),o.jsx(M,{position:"top-right"})]})}));
|
||||
import{r as m,j as o,T as b,R as j,Q as E,q as T,P as C}from"../assets/popup-CMXtuCqt.js";import{C as w}from"../assets/contants-Ds_B-epI.js";import"../assets/_commonjsHelpers-CqkleIqs.js";import"../assets/app-DI32vYIw.js";var I=(t,n,d,a,i,r,u,p)=>{let s=document.documentElement,h=["light","dark"];function c(e){(Array.isArray(t)?t:[t]).forEach(l=>{let g=l==="class",S=g&&r?i.map(y=>r[y]||y):i;g?(s.classList.remove(...S),s.classList.add(r&&r[e]?r[e]:e)):s.setAttribute(l,e)}),x(e)}function x(e){p&&h.includes(e)&&(s.style.colorScheme=e)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(a)c(a);else try{let e=localStorage.getItem(n)||d,l=u&&e==="system"?v():e;c(l)}catch{}},N=m.createContext(void 0),R={setTheme:t=>{},themes:[]},k=()=>{var t;return(t=m.useContext(N))!=null?t:R};m.memo(({forcedTheme:t,storageKey:n,attribute:d,enableSystem:a,enableColorScheme:i,defaultTheme:r,value:u,themes:p,nonce:s,scriptProps:h})=>{let c=JSON.stringify([d,n,r,t,p,u,a,i]).slice(1,-1);return m.createElement("script",{...h,suppressHydrationWarning:!0,nonce:typeof window>"u"?s:"",dangerouslySetInnerHTML:{__html:`(${I.toString()})(${c})`}})});const M=({...t})=>{const{theme:n="system"}=k();return o.jsx(b,{theme:n,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...t})},f=document.getElementById(w.ID_EXTENSION);f&&j.createRoot(f).render(o.jsx(o.Fragment,{children:o.jsxs(E,{client:T,children:[o.jsx("div",{className:"fixed bottom-20 right-6 ex-root",children:o.jsx(C,{})}),o.jsx(M,{position:"top-right"})]})}));
|
||||
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 566 B After Width: | Height: | Size: 566 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
|
@ -7,9 +7,9 @@
|
|||
<title>Vite + React + TS</title>
|
||||
<script type="module" crossorigin src="/assets/popup.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/assets/_commonjsHelpers-CqkleIqs.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/app-BbB6QE4i.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/app-DI32vYIw.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/contants-Ds_B-epI.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/popup-D7Kw3eOc.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/popup-CMXtuCqt.js">
|
||||
<link rel="stylesheet" crossorigin href="/assets/style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"manifest_version": 3,
|
||||
"name": "Auto post facebook extensions",
|
||||
"version": "1.4",
|
||||
"version": "2.0",
|
||||
"action": {
|
||||
"default_popup": "index.html",
|
||||
"default_icon": {
|
||||
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
|
@ -11,7 +11,7 @@ export class TasksService {
|
|||
|
||||
constructor(readonly syncService: SyncService) {}
|
||||
|
||||
@Cron(CronExpression.EVERY_30_MINUTES)
|
||||
@Cron(CronExpression.EVERY_10_MINUTES)
|
||||
async handleCron() {
|
||||
if (this.isRunning) {
|
||||
this.logger.warn('Cron job đang chạy, bỏ qua lần trigger mới.');
|
||||
|
|
|
|||
|
|
@ -85,13 +85,13 @@ msgService.on<{ data: IPost }>(
|
|||
|
||||
await facebookService.handleDelete(payload.data);
|
||||
|
||||
await delayRD(800, 1000);
|
||||
// await delayRD(800, 1000);
|
||||
|
||||
const products = await facebookService.getProducts();
|
||||
// const products = await facebookService.getProducts();
|
||||
|
||||
await delayRD(800, 1000);
|
||||
// await delayRD(800, 1000);
|
||||
|
||||
await productApi.sync(products);
|
||||
// await productApi.sync(products);
|
||||
|
||||
pushNoti({
|
||||
title: "Unlist Completed !",
|
||||
|
|
@ -278,8 +278,6 @@ window.addEventListener("message", async (event) => {
|
|||
"*"
|
||||
);
|
||||
} catch (error) {
|
||||
console.log({ error });
|
||||
|
||||
window.postMessage(
|
||||
{
|
||||
type: "API_RESPONSE",
|
||||
|
|
|
|||