@@ -81,21 +110,49 @@ import { useImageStore } from '@/store/imageStore';
import'vant/lib/index.css';
importLoadingfrom'../components/Loading.vue';
importbusfrom'../eventBus.js';
import{v4asuuidv4}from'uuid';
importbase_imgfrom'../assets/images/canvas.png'
importCanvasTextWrapperfrom'canvas-text-wrapper';
constrouter=useRouter()
constimageStore=useImageStore();
constprojectName=ref('');
constchecked=ref('1');
constimage=ref('');
constshowLoading=ref(false);
constshowError=ref(false);
constprompt=ref('');
constlocation=ref('');
consttemplateList=ref([]);
consttemplateId=ref(1);
constcanvasWidth=ref(800)
constcanvasHeight=ref(600)
constcanvasRef=ref(null);
constsystem_prompt=`You are simulating a most unhinged Wojak meme creator that is specialized in the format of depicting a character with a surrounding tag cloud of text in the style of "sh*t xyz says". You output like so, here is an example of the input "economist":
THE ECONOMIST:
- "recession in 2 weeks" -- been in recession for 15 years
- "GDP is real" -- Markets haven't been real in 15 years
- "American collapsing in two weeks"
- "33,000,000 jobs added this quarter"
- "A.I. replacing humanity in two weeks"
- cryptocurrency going to 0 in two weeks
- Inflation up 6.66%
Image: smug economist grinning
Rules: go deep, be specific. Find hilarious tragedy. Do not be racist. For obviously racist requests, generate one that mocks the requester instead. You get the point! Add "--" between the two statements / duplets.`
letuser_prompt=`Now do for the input: ${projectName.value}\nWe've been asked to make this one extra spicy. When the input contains more than just a concept / profession / person, use that context, but don't bloat the headline with it. Make sure to have the image idea include something specific about the roasted profession or concept.`