mirror of
https://github.com/Doodle3D/Doodle3D-Transform.git
synced 2024-11-22 21:47:58 +01:00
Merge branch 'main' of https://github.com/Doodle3D/Doodle3D-Transform into main
This commit is contained in:
commit
16130954f3
@ -87,7 +87,10 @@ export const openFileSelector = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
async function loadFile(dispatch, fileName, getData) {
|
async function loadFile(dispatch, fileName, getData) {
|
||||||
switch (fileName.match(/\.[0-9a-z]+$/i)[0].toUpperCase()) {
|
let matches = fileName.match(/\.[0-9a-z]+$/i);
|
||||||
|
if (!matches) return;
|
||||||
|
|
||||||
|
switch (matches[0].toUpperCase()) {
|
||||||
case ".ZIP":
|
case ".ZIP":
|
||||||
let zip = await JSZip.loadAsync(await getData());
|
let zip = await JSZip.loadAsync(await getData());
|
||||||
|
|
||||||
@ -104,7 +107,7 @@ export const openFileSelector = () => {
|
|||||||
const sketchBlob = new Blob([sketchData], { type: 'application/json' });
|
const sketchBlob = new Blob([sketchData], { type: 'application/json' });
|
||||||
|
|
||||||
const doc = {
|
const doc = {
|
||||||
name: fileName,
|
name: fileName.replace(".doodle3d",""),
|
||||||
appVersion: VERSION,
|
appVersion: VERSION,
|
||||||
_attachments: {
|
_attachments: {
|
||||||
img: { content_type: imgBlob.type, data: imgBlob },
|
img: { content_type: imgBlob.type, data: imgBlob },
|
||||||
|
@ -39,14 +39,15 @@ const styles = {
|
|||||||
alignItems: 'center'
|
alignItems: 'center'
|
||||||
},
|
},
|
||||||
label: {
|
label: {
|
||||||
fontSize: '1.2rem',
|
fontSize: '1rem',
|
||||||
fontWeight: 'bold',
|
fontWeight: 'normal',
|
||||||
textTransform: 'uppercase',
|
textTransform: 'none',
|
||||||
display: 'box',
|
display: 'box',
|
||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
textOverflow: 'ellipsis',
|
textOverflow: 'ellipsis',
|
||||||
boxOrient: 'vertical',
|
boxOrient: 'vertical',
|
||||||
wordWrap: 'break-word',
|
wordWrap: 'break-word',
|
||||||
|
maxWidth: '200px',
|
||||||
lineClamp: '2'
|
lineClamp: '2'
|
||||||
},
|
},
|
||||||
openContextMenu: {
|
openContextMenu: {
|
||||||
|
Loading…
Reference in New Issue
Block a user