point urls to the correct location
This commit is contained in:
parent
06451b7efe
commit
84d1bd4742
|
@ -60,7 +60,7 @@
|
|||
{/if}
|
||||
|
||||
<footer>
|
||||
made with <div class="icon"><IoMdHeart/></div> by oatmealine. <a target="_blank" href="https://git.oat.zone/oat/project-databased-fe">source</a>
|
||||
made with <div class="icon"><IoMdHeart/></div> by oatmealine. <a target="_blank" href="https://git.oat.zone/oat/chartmaker-fe">source</a>
|
||||
</footer>
|
||||
</content>
|
||||
</main>
|
||||
</main>
|
||||
|
|
|
@ -39,7 +39,8 @@
|
|||
disableButton = true;
|
||||
|
||||
try {
|
||||
const response = await fetch('http://localhost:5252/create', {
|
||||
console.log('hello?');
|
||||
const response = await fetch('https://chartmaker.oat.zone/create', {
|
||||
method: 'POST',
|
||||
mode: 'cors',
|
||||
headers: {
|
||||
|
@ -153,4 +154,4 @@
|
|||
<Chart topText={top} leftText={left} rightText={right} bottomText={bot} fontSize={fontSize}/>
|
||||
{/key}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
let submitError = null;
|
||||
|
||||
onMount(() => {
|
||||
s = new WebSocket('ws://localhost:5252/connect?id=' + $currentChartID);
|
||||
s = new WebSocket('wss://chartmaker.oat.zone/connect?id=' + $currentChartID);
|
||||
s.addEventListener('message', (e) => {
|
||||
let data = JSON.parse(e.data);
|
||||
console.log(data);
|
||||
|
@ -45,7 +45,7 @@
|
|||
isLoaded = true;
|
||||
} else {
|
||||
for (const img of data) {
|
||||
img.file = 'http://localhost:5252/img/' + img.file;
|
||||
img.file = 'https://chartmaker.oat.zone/img/' + img.file;
|
||||
}
|
||||
images.update(imgs => [...imgs, ...data]);
|
||||
}
|
||||
|
@ -67,7 +67,7 @@
|
|||
formData.append('icon', upload);
|
||||
|
||||
try {
|
||||
const response = await fetch('http://localhost:5252/add', {
|
||||
const response = await fetch('https://chartmaker.oat.zone/add', {
|
||||
method: 'POST',
|
||||
mode: 'cors',
|
||||
body: formData,
|
||||
|
@ -273,4 +273,4 @@
|
|||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue