{"version":3,"sources":["../node_modules/typescript/lib sync","components/NavMenu.js","components/Layout.js","components/HomeCn.js","components/FetchData.js","components/Counter.js","i18n.js","Setting.js","components/CarNumber.js","components/Gambit.js","components/PlateText.js","App.js","registerServiceWorker.js","index.js"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","module","exports","id","NavMenu","props","toggleNavbar","bind","state","collapsed","this","setState","Navbar","className","light","Container","NavbarBrand","tag","Link","to","NavbarToggler","onClick","Collapse","isOpen","navbar","NavItem","NavLink","Component","displayName","name","Layout","children","HomeCn","class","href","FetchData","forecasts","loading","populateWeatherData","contents","renderForecastsTable","a","fetch","response","json","data","window","location","search","map","forecast","date","temperatureC","temperatureF","summary","Counter","currentCount","incrementCounter","resources","en","es","zh","fr","de","ko","ru","ja","i18n","use","initReactI18next","init","lng","language","localStorage","getItem","undefined","Setting","navigator","initLanguage","keySeparator","interpolation","escapeValue","saveMissing","changeLanguage2","para","lang","get","getExistLang","setItem","i18next","changeLanguage","userLanguage","ModelingApiStr","TextArea","Input","Option","Select","modelingType","BackgroundScene","scene","THREE","background","fog","hemiLight","position","set","add","directionalLight","castShadow","shadow","camera","top","bottom","left","right","ground","color","depthWrite","rotation","x","Math","PI","receiveShadow","grid","material","opacity","transparent","object","StlScene","stl","useLoader","STLLoader","stlUrl","mesh","Loader","useProgress","progress","active","errors","item","loaded","total","Html","center","style","CarNumber","restoreProject","userId","token","uri","method","headers","then","project","fetchJPara","catch","error","console","accessToken","responseData","jPara","JSON","parse","jsonPara","type","stlPath","plainLength","plateSX","plainWidth","plateSY","carNumberText","textContent","getPrinterProfile","urlParams","searchParams","indexOf","URLSearchParams","substring","length","homeView","orbitRef","current","reset","handleVisibleChange","hoverPaneVisible","saveButtonClick","projectTempName","saveModalVisible","handleSaveOk","projectSaving","groupUploadSetting","categoryIds","description","projectTempDescription","accessibility","licenseId","body","stringify","saveButtonDisable","status","j","errorCode","message","t","success","updateProjectName","tempProject","handleSaveCancel","printButtonClick","printModalVisible","getPrinters","warn","refreshPrinterClick","printModalRequesting","handlePrintOk","printProject","handlePrintCancel","onlineIotPrinters","Map","forEach","v","size","selectedPrinter","firstPrinter","values","next","value","updateSelectedPrinter","transportIotPrinter","emptyOnlineIotPrinters","endPrintModalRequesting","printSetting","printerType","profile","slicingSetting","speed","nozzleSize","supportType","support","adhesionType","gcode83Name","iotPrinter","jsonData","taskId","endPrintProjectRequest","showSlicingProgress","selectedPrinterText","onSupportChange","checked","onPrinterSelect","option","key","materialSelect","materials","meterialOptions","printerProfileList","find","printerName","progressModalVisible","timerIndex","setInterval","mes","errorType","errorMes","progressInModal","percent","clearInterval","progressModalClose","target","lastSaveCarNumberText","carnumbContentBottom","React","createRef","generateModel","_userId","_accessToken","log","carNumberPara","dpr","defaultCamera","gl","antialias","fallback","PerspectiveCamera","OrbitControls","ref","shape","icon","HomeOutlined","placeholder","onChange","visible","title","onOk","onCancel","maskClosable","footer","tip","spinning","autoSize","rows","disabled","width","onSelect","Array","from","printer","label","ReloadOutlined","checkedChildren","unCheckedChildren","defaultChecked","format","toFixed","fov","near","far","Gambit","margin","geometry","computeBoundingBox","y","boundingBox","min","z","PlateText","getSearchParams","getModelingType","pathStrs","pathname","split","getJPara","projectId","plateTextJPara","url","origin","deviceId","_modelingType","textPara","category","ModelingCategory","App","exact","path","component","withTranslation","isLocalhost","Boolean","hostname","match","registerValidSW","swUrl","serviceWorker","register","registration","onupdatefound","installingWorker","installing","onstatechange","controller","baseUrl","document","getElementsByTagName","getAttribute","rootElement","getElementById","ReactDOM","render","basename","URL","process","addEventListener","ready","unregister","reload","checkValidServiceWorker","registerServiceWorker"],"mappings":"iIAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,EAEPF,EAAoBK,KAAO,WAAa,MAAO,IAC/CL,EAAoBM,QAAUN,EAC9BO,EAAOC,QAAUR,EACjBA,EAAoBS,GAAK,K,g4YCHZC,EA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AcH,SAASI,eAAe,QAG5CC,IAASC,OACP,cAAC,IAAD,CAAeC,SAAUR,GAAzB,SACE,cAAC,GAAD,MAEFI,IDEa,WACb,GAA6C,kBAAmB/R,UAAW,CAGzE,GADkB,IAAIoS,IAAIC,GAAwBpU,OAAOC,UAC3CgS,SAAWjS,OAAOC,SAASgS,OAIvC,OAGFjS,OAAOqU,iBAAiB,QAAQ,WAC9B,IAAMpB,EAAK,UAAMmB,GAAN,sBAEPxB,GAwCV,SAAkCK,GAEhCrT,MAAMqT,GACHvM,MAAK,SAAA7G,GAGkB,MAApBA,EAAS4J,SACuD,IAAhE5J,EAAS4G,QAAQjE,IAAI,gBAAgByF,QAAQ,cAG7ClG,UAAUmR,cAAcoB,MAAM5N,MAAK,SAAA0M,GACjCA,EAAamB,aAAa7N,MAAK,WAC7B1G,OAAOC,SAASuU,eAKpBxB,GAAgBC,MAGnBpM,OAAM,WACLE,QAAQuH,IACN,oEA5DAmG,CAAwBxB,GAGxBD,GAAgBC,OCnBxByB,K","file":"static/js/main.fe4acdea.chunk.js","sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nmodule.exports = webpackEmptyContext;\nwebpackEmptyContext.id = 166;","import React, { Component } from 'react';\r\nimport { Collapse, Container, Navbar, NavbarBrand, NavbarToggler, NavItem, NavLink } from 'reactstrap';\r\nimport { Link } from 'react-router-dom';\r\nimport './NavMenu.css';\r\n\r\nexport class NavMenu extends Component {\r\n static displayName = NavMenu.name;\r\n\r\n constructor (props) {\r\n super(props);\r\n\r\n this.toggleNavbar = this.toggleNavbar.bind(this);\r\n this.state = {\r\n collapsed: true\r\n };\r\n }\r\n\r\n toggleNavbar () {\r\n this.setState({\r\n collapsed: !this.state.collapsed\r\n });\r\n }\r\n\r\n render () {\r\n return (\r\n
\r\n \r\n \r\n ThreeGalleryServer\r\n \r\n \r\n
    \r\n \r\n Home\r\n \r\n \r\n Counter\r\n \r\n \r\n Fetch data\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n","import React, { Component } from 'react';\r\nimport { Container } from 'reactstrap';\r\nimport { NavMenu } from './NavMenu';\r\n\r\nexport class Layout extends Component {\r\n static displayName = Layout.name;\r\n\r\n render () {\r\n return (\r\n
\r\n \r\n \r\n {this.props.children}\r\n \r\n
\r\n );\r\n }\r\n}\r\n","import React, { Component } from 'react';\r\n\r\nimport \"./styles.css\";\r\n\r\n\r\n\r\n\r\nexport class HomeCn extends Component {\r\n static displayName = HomeCn.name;\r\n\r\n render () {\r\n return (\r\n
\r\n

Hello, world!

\r\n

Welcome to cloud modeling

\r\n
版权所有:江苏威宝仕智能科技有限公司 苏ICP备15010576号-3
\r\n
\r\n \r\n );\r\n\r\n\r\n\r\n }\r\n}\r\n","import React, { Component } from 'react';\r\n\r\nexport class FetchData extends Component {\r\n static displayName = FetchData.name;\r\n\r\n constructor(props) {\r\n super(props);\r\n this.state = { forecasts: [], loading: true };\r\n }\r\n\r\n componentDidMount() {\r\n this.populateWeatherData();\r\n }\r\n\r\n\r\n static renderForecastsTable(forecasts) {\r\n //test\r\n let fullUrl=window.location.href;\r\n let search = window.location.search;\r\n //\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {forecasts.map(forecast =>\r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n \r\n
DateTemp. (C)Temp. (F)Summary
{forecast.date}{forecast.temperatureC}{forecast.temperatureF}{forecast.summary}
\r\n );\r\n }\r\n\r\n render() {\r\n let contents = this.state.loading\r\n ?

Loading...

\r\n : FetchData.renderForecastsTable(this.state.forecasts);\r\n\r\n return (\r\n
\r\n

Weather forecast

\r\n

This component demonstrates fetching data from the server.

\r\n {contents}\r\n
\r\n );\r\n }\r\n\r\n async populateWeatherData() {\r\n const response = await fetch('weatherforecast');//�Ӻ�̨��ȡ����\r\n const data = await response.json();\r\n this.setState({ forecasts: data, loading: false });\r\n }\r\n}\r\n","import React, { Component } from 'react';\r\n\r\nexport class Counter extends Component {\r\n static displayName = Counter.name;\r\n\r\n constructor(props) {\r\n super(props);\r\n this.state = { currentCount: 0 };\r\n this.incrementCounter = this.incrementCounter.bind(this);\r\n }\r\n\r\n incrementCounter() {\r\n this.setState({\r\n currentCount: this.state.currentCount + 1\r\n });\r\n }\r\n\r\n render() {\r\n return (\r\n
\r\n

Counter

\r\n\r\n

This is a simple example of a React component.

\r\n\r\n

Current count: {this.state.currentCount}

\r\n\r\n \r\n
\r\n );\r\n }\r\n}\r\n","// Copyright 2021 The Casdoor Authors. All Rights Reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport i18n from \"i18next\";\nimport zh from \"./locales/zh/data.json\";\nimport en from \"./locales/en/data.json\";\nimport fr from \"./locales/fr/data.json\";\nimport de from \"./locales/de/data.json\";\nimport ko from \"./locales/ko/data.json\";\nimport ru from \"./locales/ru/data.json\";\nimport ja from \"./locales/ja/data.json\";\nimport es from \"./locales/es/data.json\";\n//import * as Conf from \"./Conf\";\nimport * as Setting from \"./Setting\";\nimport {initReactI18next} from \"react-i18next\";\n\nconst resources = {\n en: en,\n es: es,\n zh: zh,\n fr: fr,\n de: de,\n ko: ko,\n ru: ru,\n ja: ja,\n};\n\nfunction initLanguage() {\n let language = localStorage.getItem(\"language\");\n if (language === undefined || language === null || language === \"\") {\n // if (Conf.ForceLanguage !== \"\") {\n if (false) {\n // language = Conf.ForceLanguage;\n } else {\n const userLanguage = navigator.language;//浏览器默认语言\n language=Setting.getExistLang(userLanguage);\n\n }\n }\n // Setting.changeMomentLanguage(language);\n\n return language;\n}\n\ni18n.use(initReactI18next).init({\n lng: initLanguage(),\n\n resources: resources,\n\n keySeparator: false,\n\n interpolation: {\n escapeValue: false,\n },\n // debug: true,\n saveMissing: true,\n});\n\nexport default i18n;\n\n// i18n\n// // load translation using http -> see /public/locales\n// // learn more: https://github.com/i18next/i18next-http-backend\n// .use(Backend)\n// // detect user language\n// // learn more: https://github.com/i18next/i18next-browser-languageDetector\n// // .use(LanguageDetector)\n// // pass the i18n instance to react-i18next.\n// .use(initReactI18next)\n// // init i18next\n// // for all options read: https://www.i18next.com/overview/configuration-options\n// .init({\n// lng: \"en\",\n// fallbackLng: 'en',\n// // debug: true,\n\n// interpolation: {\n// escapeValue: false, // not needed for react as it escapes by default\n// },\n// });\n\n// export default i18n;","// import React from \"react\";\r\nimport i18next from \"i18next\";\r\nimport \"./i18n\";\r\n\r\nexport function changeLanguage(language) {\r\n localStorage.setItem(\"language\", language);\r\n //changeMomentLanguage(language);\r\n i18next.changeLanguage(language);\r\n // window.location.reload(true);\r\n }\r\n\r\nexport function changeLanguage2(para) {\r\n let lang=para.get('lang');\r\n //todo 注意lang为空时 app出现问题\r\n if(lang != undefined && lang != null && lang != \"\"){\r\n changeLanguage(getExistLang(lang));\r\n }\r\n}\r\n\r\nexport function getExistLang(userLanguage){\r\n let language;\r\n switch (userLanguage) {\r\n case \"zh-CN\":\r\n language = \"zh\";\r\n break;\r\n case \"zh\":\r\n language = \"zh\";\r\n break;\r\n case \"en\":\r\n language = \"en\";\r\n break;\r\n case \"en-US\":\r\n language = \"en\";\r\n break;\r\n case \"fr\":\r\n language = \"fr\";\r\n break;\r\n case \"es\":\r\n language = \"es\";\r\n break;\r\n case \"de\":\r\n language = \"de\";\r\n break;\r\n case \"ko\":\r\n language = \"ko\";\r\n break;\r\n case \"ru\":\r\n language = \"ru\";\r\n break;\r\n case \"ja\":\r\n language = \"ja\";\r\n break;\r\n default:\r\n language = \"en\";\r\n }\r\n return language;\r\n}\r\n\r\nexport const ModelingApiStr=\"api\";\r\n\r\n\r\nexport function getStlUrl(origin,projectId,accessToken){\r\n return `${origin}/api/modeling/project/stl/${projectId}?accessToken=${accessToken}`;\r\n}\r\nexport function getJParaUrl(projectId){\r\n return `api/modeling/project/jsonPara/${projectId}`;\r\n}\r\nexport function getGenerateModelUrl(projectId){\r\n return `api/modeling/project/stl/${projectId}`\r\n}\r\nexport function getRestoreProjectUrl(userId,modelingType){\r\n return `api/modeling/project/restoreOrNew?userId=${userId}&modelingType=${modelingType}`;\r\n}\r\nexport function getPrintersUrl(userId){\r\n return `api/user/${userId}/devicesWithMoreClientRedirect?limit=100`;\r\n}\r\nexport function getPrintProjectUrl(deviceId,projectId){\r\n return `api/modeling/print/${deviceId}/${projectId}`;\r\n}\r\nexport function getSlicingProgressUrl(taskId){\r\n return `api/task/progressClientRedirect/print/${taskId}`;\r\n}\r\nexport function getTemplateOriginStlUrl(modelingType){\r\n return `api/modeling/files/${modelingType}/${modelingType}.stl`;\r\n}\r\n\r\n//v1\r\nexport function getSlicingProgressUrlV1(taskId){\r\n return `api/v1/slicing/task/${taskId}`;\r\n}\r\nexport function getPrintProjectUrlV1(projectId){\r\n return `api/v1/project/print/${projectId}`;\r\n}\r\n//","import React, { Component } from 'react';\r\nimport 'antd/dist/antd.css';\r\nimport './modeling.css'\r\n\r\nimport { Canvas, useFrame } from \"@react-three/fiber\";\r\nimport { useLoader } from \"@react-three/fiber\";\r\nimport { Environment, OrbitControls, Html, useProgress, TransformControls, PerspectiveCamera, Sky } from \"@react-three/drei\";\r\nimport { GLTFLoader } from \"three/examples/jsm/loaders/GLTFLoader\";\r\nimport { OBJLoader } from \"three/examples/jsm/loaders/OBJLoader\";\r\nimport { STLLoader } from \"three/examples/jsm/loaders/STLLoader\";\r\nimport { Suspense, useRef, useState } from \"react\";\r\nimport { useThree, render, events } from '@react-three/fiber';\r\nimport * as THREE from 'three';\r\nimport i18next from \"i18next\";\r\nimport * as Setting from \"../Setting\";\r\n// import { useControls } from 'leva';\r\n// import * as LEVA from 'leva';\r\n\r\nimport { Input, Popover,Modal,Spin, Alert, Button ,InputNumber, Select, Space, Cascader,Divider,notification,message,Menu, Dropdown, Checkbox,Switch,Row, Col,Progress } from 'antd';\r\n//有问题再用antd-mobile重新设计页面\r\n\r\nimport { HomeOutlined, StarFilled, StarTwoTone,DownOutlined,SyncOutlined,ReloadOutlined } from '@ant-design/icons';\r\nimport { post } from 'jquery';\r\nimport { createTrue, visitNode } from 'typescript';\r\n\r\nconst { TextArea } = Input;\r\nconst { Option } = Select;\r\n\r\n\r\nconst StlModel = () => {\r\n const { gl, /*THREE.WebGLRenderer*/ scene } = useThree();\r\n const obj = useLoader(OBJLoader, './texturedMesh.obj');\r\n const stl = useLoader(STLLoader, './dragon.stl');\r\n // console.log('test obj');\r\n // console.log(obj);\r\n // console.log('test stl');\r\n // console.log(stl);\r\n return (\r\n \r\n\r\n \r\n );\r\n\r\n};\r\nfunction ViewControl(props) {\r\n // This one makes the camera move in and out\r\n const ref = useRef();\r\n const st = useThree(state => state)\r\n useFrame(({ camera}) => {\r\n if(props.resetclicked){\r\n props.reset(camera);\r\n }\r\n //camera.position.z = 50 + Math.sin(clock.getElapsedTime()) * 30 \r\n })\r\n return null\r\n}\r\n\r\n\r\nconst modelingType=\"carNumber\";\r\n\r\n\r\nconst BackgroundScene=()=>{\r\n\r\n // let camera = new THREE.PerspectiveCamera( 45, window.innerWidth / window.innerHeight, 1, 1000 );\r\n // camera.position.set( 200, 100, 200 );\r\n \r\n let scene = new THREE.Scene();\r\n \r\n scene.background = new THREE.Color( 0xa0a0a0 );\r\n scene.fog = new THREE.Fog( 0xa0a0a0, 200, 1000 );\r\n \r\n //\r\n \r\n const hemiLight = new THREE.HemisphereLight( 0xffffff, 0x444444 );\r\n hemiLight.position.set( 0, 200, 0 );\r\n scene.add( hemiLight );\r\n \r\n const directionalLight = new THREE.DirectionalLight( 0xffffff );\r\n directionalLight.position.set( 0, 200, 100 );\r\n directionalLight.castShadow = true;\r\n directionalLight.shadow.camera.top = 180;\r\n directionalLight.shadow.camera.bottom = - 100;\r\n directionalLight.shadow.camera.left = - 120;\r\n directionalLight.shadow.camera.right = 120;\r\n scene.add( directionalLight );\r\n \r\n // ground\r\n const groudSize=400;\r\n const ground = new THREE.Mesh( new THREE.PlaneGeometry( groudSize, groudSize ), new THREE.MeshPhongMaterial( { color: 0x999999, depthWrite: false } ) );\r\n ground.rotation.x = - Math.PI / 2;\r\n ground.receiveShadow = true;\r\n scene.add( ground );\r\n \r\n const grid = new THREE.GridHelper( groudSize, 20, 0x000000, 0x000000 );\r\n grid.material.opacity = 0.2;\r\n grid.material.transparent = true;\r\n scene.add( grid );\r\n return(\r\n <>\r\n \r\n \r\n );\r\n }\r\n \r\n\r\n const StlScene=(props)=>{\r\n const stl=useLoader(STLLoader,props.stlUrl);\r\n let scene = new THREE.Scene();\t\t\r\n //const material = new THREE.MeshPhongMaterial( { color: 0x1050ff } );//手机上接近wiibuilder:0x1050ff,\r\n const material = new THREE.MeshNormalMaterial();//根据法向量显示的彩色\r\n let mesh = new THREE.Mesh( stl, material );\r\n mesh.castShadow = true;\r\n mesh.rotation.set( - Math.PI / 2, 0, 0 );\r\n scene.add( mesh );\r\n\r\n return(\r\n <>\r\n \r\n \r\n );\r\n }\r\nfunction Loader() {\r\n const { active, progress, errors, item, loaded, total } = useProgress();\r\n return {progress} % loaded;\r\n}\r\n\r\n\r\nexport class CarNumber extends Component {\r\n static displayName = CarNumber.name;\r\n static defaultCamera={ position: [0, 360, 500], rotation: [], fov: 55, near: 1, far: 20000 };\r\n constructor(props) {\r\n super(props);\r\n\r\n this.state = {\r\n userId:\"\",\r\n accessToken:\"\",\r\n target:[0,0,0],\r\n stlUrl: \"CarNumber.stl\",\r\n plainLength:90,\r\n plainWidth:50,\r\n carNumberText:\"\",\r\n lastSaveCarNumberText:\"\",\r\n saveButtonDisable:false,\r\n hoverPaneVisible: false,\r\n saveModalVisible:false,\r\n projectSaving:false,\r\n project:{},\r\n projectTempName:\"CarNumber\",//上传页面中的名称\r\n projectTempDescription:\"Saved from modeling\",//上传页面中的名称\r\n printModalVisible:false,\r\n printModalRequesting:false,\r\n onlineIotPrinters:new Map(),\r\n meterialOptions:['pla'],//材料选择器先给默认值\r\n slicingSetting:{\r\n support:false,\r\n material:null,\r\n speed:null,\r\n },\r\n printerProfileList:[],\r\n selectedPrinterText:\"No online printer\",//选择器显示的文字\r\n selectedPrinter:null,//打印模型时用 {iotPrinter:{},profile:{}}\r\n progressModalVisible:false,\r\n progressInModal:{percent:0,message:i18next.t(\"modeling:Preparing to slicing\")+'...'},\r\n timerIndex:-1,\r\n carnumbContentBottom:'5px',\r\n };\r\n this.orbitRef = React.createRef();\r\n\r\n // 为了在回调中使用 `this`,这个绑定是必不可少的\r\n this.generateModel = this.generateModel.bind(this);\r\n }\r\n componentDidMount() {\r\n // fetchPosts().then(response => {\r\n // this.setState({\r\n // posts: response.posts\r\n // });\r\n // });\r\n\r\n // fetchComments().then(response => {\r\n // this.setState({\r\n // comments: response.comments\r\n // });\r\n // });\r\n\r\n let para = this.urlParams();\r\n if(para!=null){\r\n\r\n Setting.changeLanguage2(para);\r\n\r\n let _userId=para.get('userId');\r\n let _accessToken=para.get('accessToken');\r\n console.log(\"userId:\"+_userId)\r\n this.setState({\r\n userId:_userId,\r\n accessToken:_accessToken\r\n });\r\n if(_userId&&_accessToken)\r\n this.restoreProject(_userId,_accessToken);//setState的刷新取决于ui,此处需要立马传递数据\r\n }\r\n }\r\n\r\n //todo 处理刚进入页面就打印模型\r\n restoreProject=(userId,token)=>{\r\n let uri=`${Setting.ModelingApiStr}/modeling/project/restoreOrNew?userId=${userId}&modelingType=${modelingType}`;\r\n fetch(uri, {\r\n method: 'Get',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization':`Bearer ${token}`\r\n },\r\n }) \r\n .then((response) => response.json()) \r\n .then((project) => {\r\n //let project = JSON.parse(responseData);//dotnet 返回一个类,json()以后就是对象\r\n this.setState({\r\n project:project,\r\n });\r\n this.fetchJPara();\r\n })\r\n .catch(error => {\r\n console.error('restoreOrNew error', error);\r\n });\r\n }\r\n\r\n fetchJPara=()=>{\r\n let uri=`${Setting.ModelingApiStr}/modeling/project/jsonPara/${this.state.project.id}`;\r\n fetch(uri, {\r\n method: 'Get',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization':`Bearer ${this.state.accessToken}`\r\n },\r\n }) \r\n .then((response) => response.json()) \r\n .then((responseData) => { \r\n let jPara = JSON.parse(responseData.jsonPara);\r\n if(responseData.type==modelingType&&jPara.stlPath!=null)\r\n this.setState({\r\n stlUrl: `${Setting.ModelingApiStr}/modeling/project/stl/${this.state.project.id}?accessToken=${this.state.accessToken}`,\r\n plainLength:jPara.plateSX,\r\n plainWidth:jPara.plateSY,\r\n carNumberText:jPara.textContent,\r\n });\r\n })\r\n .catch(error => {\r\n console.error('restoreOrNew error', error);\r\n });\r\n\r\n this.getPrinterProfile();\r\n }\r\n \r\n\r\n async generateModel(e){\r\n //e.preventDefault();\r\n if(this.state.carNumberText==null||this.state.carNumberText==\"\"){\r\n message.warn(i18next.t(\"modeling:Text is empty,please enter something\"),1.5);\r\n return;\r\n }\r\n\r\n this.updateProjectName(this.state.carNumberText);\r\n\r\n let carNumberPara={\r\n textContent:this.state.carNumberText,\r\n plateSX:this.state.plainLength,\r\n plateSY:this.state.plainWidth,\r\n };\r\n let body={\r\n type:modelingType,\r\n jsonPara:JSON.stringify(carNumberPara)\r\n };\r\n \r\n let uri=`${Setting.ModelingApiStr}/modeling/project/stl/${this.state.project.id}`;\r\n //pulic 文件夹发生写文件会造成此fetch错误而重新刷新页面\r\n fetch(uri, {\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization':`Bearer ${this.state.accessToken}`\r\n },\r\n body: JSON.stringify(body),\r\n }) \r\n .then((response) => response.json()) \r\n .then((responseData) => {\r\n console.log(responseData);\r\n //let destStlUrl='./'+data.stlName;\r\n // 不同的文件需要用不同的文件名,否则setState不起作用\r\n //let destStlUrl=`api/modeling/result/${data.stlName}`;\r\n this.setState({\r\n stlUrl:`${responseData.stlUrl}&&accessToken=${this.state.accessToken}`,\r\n });\r\n })\r\n .catch(error => {\r\n console.error('Unable to generate stl.', error);\r\n });\r\n //test\r\n // this.setState({\r\n // stlUrl:'./dragon.stl',\r\n // });\r\n console.log(\"generateModel\");\r\n //const data = await response.json();\r\n }\r\n\r\n urlParams=()=> {\r\n var searchParams;\r\n if (window.location.search.indexOf(\"?\") == 0 && window.location.search.indexOf(\"=\") > 1) {\r\n searchParams = new URLSearchParams(window.location.search.substring(1, window.location.search.length));\r\n }\r\n return searchParams;\r\n }\r\n\r\n\r\n\r\n homeView=()=>{\r\n this.orbitRef.current.reset();\r\n // this.orbitRef.current.target=new THREE.Vector3(0,0,0);\r\n // this.orbitRef.current.object.position.x=0;//set camera\r\n // this.orbitRef.current.object.position.y=360;\r\n // this.orbitRef.current.object.position.z=500; \r\n }\r\n\r\n handleVisibleChange = hoverPaneVisible => {\r\n this.setState({ hoverPaneVisible });\r\n };\r\n \r\n saveButtonClick=(e)=>{\r\n //输入框显示项目名称\r\n if(this.state.project.name){\r\n this.setState((state) => ({\r\n projectTempName: state.project.name\r\n }));\r\n }\r\n else{\r\n this.setState((state) => ({\r\n projectTempName: state.carNumberText\r\n }));\r\n }\r\n this.setState({ saveModalVisible:true });\r\n }\r\n\r\n //目前允许相同的文字多次保存,如需要只保存一次再修改按钮的,disabled={this.state.saveButtonDisable}\r\n handleSaveOk = () => {\r\n this.setState({ projectSaving: true });\r\n // setTimeout(() => {\r\n // this.setState({ projectSaving: false, saveModalVisible: false });\r\n // //this.context.router.history.goBack();\r\n // }, 10000);\r\n\r\n let groupUploadSetting= {\r\n name:this.state.projectTempName,\r\n categoryIds:[0],\r\n description:this.state.projectTempDescription,\r\n accessibility:\"private\",\r\n licenseId: 0\r\n }\r\n //todo 图片渲染异步执行需要专门的服务更新数据库信息\r\n let uri=`${Setting.ModelingApiStr}/modeling/project/saveToGallery/${this.state.project.id}`;\r\n fetch(uri, {\r\n method: 'Post',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization':`Bearer ${this.state.accessToken}`\r\n },\r\n body: JSON.stringify(groupUploadSetting),\r\n }) \r\n .then((response) => {\r\n this.setState({ projectSaving: false, saveModalVisible: false ,saveButtonDisable:response.status==200});//,saveButtonDisable:response.status==200\r\n if(response.status!=200){\r\n // notification.error({\r\n // description:'保存模型失败',\r\n // placement:\"bottom\",\r\n // duration:5\r\n // }); \r\n response.json().then(j=>{\r\n if(j.errorCode==14006){\r\n message.error(i18next.t(\"modeling:Private cloud space not enough\"),5);\r\n }\r\n else\r\n message.error(i18next.t(\"modeling:Save model failed\")+`:${j.message}`,5);\r\n });\r\n }\r\n else{\r\n //message.success(`模型已保存至您的模型库。 可到 \"我的\" -> \"私有模型库\" 中查看。`,3);\r\n message.success(i18next.t(\"modeling:SaveModelSucceed\"),3);\r\n }\r\n })\r\n .catch(error => {\r\n console.error('save to gallery error', error);\r\n this.setState({ projectSaving: false, saveModalVisible: true ,saveButtonDisable:false});\r\n message.error(i18next.t(\"modeling:Save model failed\")+`:${error}`,5);\r\n });\r\n\r\n //update project name\r\n this.updateProjectName(this.state.projectTempName);\r\n // this.setState((state) => ({\r\n // lastSaveCarNumberText: state.carNumberText,\r\n // saveButtonDisable:true,\r\n // }));\r\n };\r\n\r\n updateProjectName=(name)=>{\r\n let tempProject=this.state.project;\r\n tempProject.name=name;\r\n this.setState({project:tempProject});\r\n }\r\n\r\n handleSaveCancel = () => {\r\n this.setState({ projectSaving: false, saveModalVisible: false });\r\n };\r\n\r\n\r\n/*1.有在线机器默认选第一个\r\n2.没有机器显示 无在线机器\r\n3.弹出界面时检查上一次选中的机器是否在线\r\n*/\r\n//print\r\n printButtonClick=(e)=>{\r\n if(this.state.carNumberText==null||this.state.carNumberText==\"\"){\r\n message.warn(i18next.t(\"modeling:Text is empty,please enter something\"),1.5);\r\n return;\r\n }\r\n this.setState({ printModalVisible:true });\r\n this.getPrinters();\r\n }\r\n refreshPrinterClick=(e)=>{\r\n this.setState({ printModalRequesting:true });\r\n this.getPrinters();\r\n }\r\n handlePrintOk=()=>{ \r\n \r\n this.printProject();\r\n\r\n }\r\n handlePrintCancel=()=>{\r\n this.setState({ printModalVisible:false });\r\n }\r\n\r\n getPrinters=()=>{\r\n //todo 后端取获取,从token获取id和cumstomid, 或者直接增加一个接口 传userid获取设备\r\n \r\n \r\n //let uri=`http://8.217.35.137:8083/api/customer/45652930-b0cb-11ec-a4b3-178a834213c5/devicesWithMore?limit=100`\r\n let uri=`${Setting.ModelingApiStr}/user/${this.state.userId}/devicesWithMoreClientRedirect?limit=100`;\r\n fetch(uri, {\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization':`Bearer ${this.state.accessToken}`\r\n },\r\n }) \r\n .then((response) => {\r\n if(response.status==200)\r\n { \r\n response.json().then(j=>{\r\n let onlineIotPrinters= new Map()\r\n j.data.forEach(v=>{\r\n if(v.active){\r\n onlineIotPrinters.set(v.id.id,v)\r\n }\r\n });\r\n if(onlineIotPrinters.size>0){\r\n this.setState({\r\n onlineIotPrinters\r\n });\r\n if(!this.state.selectedPrinter){\r\n let firstPrinter=onlineIotPrinters.values().next().value;\r\n this.updateSelectedPrinter(this.transportIotPrinter(firstPrinter));\r\n } \r\n }\r\n else{\r\n this.emptyOnlineIotPrinters();\r\n } \r\n }); \r\n }\r\n else{\r\n this.emptyOnlineIotPrinters();\r\n message.error(i18next.t(\"modeling:Get printer list failed\")+`:${response.status}${response.error}`,5);\r\n }\r\n this.endPrintModalRequesting();\r\n })\r\n .catch(error => {\r\n // console.error('save to gallery error', error);\r\n this.emptyOnlineIotPrinters();\r\n message.error(i18next.t(\"modeling:Get printer list failed\")+`:${error}`,5);\r\n this.endPrintModalRequesting();\r\n });\r\n }\r\n\r\n printProject=()=>{\r\n\r\n this.setState({ printModalRequesting:true}); \r\n let printSetting= {\r\n printerType:this.state.selectedPrinter.profile.printerType,\r\n material:this.state.slicingSetting.material,\r\n speed:\"normal\",\r\n nozzleSize:0.4,\r\n supportType: this.state.slicingSetting.support?\"everywhere\":\"none\",\r\n adhesionType:\"raft\",\r\n gcode83Name: this.state.selectedPrinter.profile.gcode83Name\r\n }\r\n let uri=`${Setting.ModelingApiStr}/modeling/print/${this.state.selectedPrinter.iotPrinter.id.id}/${this.state.project.id}`;\r\n fetch(uri, {\r\n method: 'Post',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization':`Bearer ${this.state.accessToken}`\r\n },\r\n body: JSON.stringify(printSetting),\r\n }) \r\n .then((response) => response.json()) \r\n .then(jsonData=>{\r\n if(jsonData.taskId){\r\n this.endPrintProjectRequest();\r\n this.showSlicingProgress(jsonData.taskId);\r\n }\r\n else{\r\n this.endPrintModalRequesting();\r\n }\r\n \r\n })//todo get progress\r\n .catch(error=>{\r\n this.endPrintModalRequesting();\r\n message.error(i18next.t(\"modeling:Print command send error\")+`:${error}`,5);\r\n }); \r\n }\r\n\r\n\r\n\r\n \r\n emptyOnlineIotPrinters=()=>{\r\n this.setState(\r\n {\r\n onlineIotPrinters:new Map(),\r\n selectedPrinterText:i18next.t(\"modeling:No online printer\"),\r\n selectedPrinter:null,\r\n });\r\n }\r\n\r\n endPrintProjectRequest=()=>{\r\n this.setState({ \r\n printModalVisible:false,\r\n printModalRequesting:false \r\n });\r\n }\r\n endPrintModalRequesting=()=>{\r\n this.setState(\r\n {\r\n printModalRequesting:false,\r\n });\r\n }\r\n\r\n onSupportChange=(checked)=>{\r\n let slicingSetting=this.state.slicingSetting;\r\n slicingSetting.support=checked;\r\n this.setState({slicingSetting});\r\n }\r\n onPrinterSelect=(value,option)=>{\r\n\r\n // message.info(`选中:${option.key}`,5);\r\n\r\n let selectedPrinter=this.transportIotPrinter(this.state.onlineIotPrinters.get(option.key));\r\n this.updateSelectedPrinter(selectedPrinter);\r\n }\r\n\r\n materialSelect=(value,option)=>{\r\n let slicingSetting=this.state.slicingSetting;\r\n slicingSetting.material=value;\r\n this.setState({slicingSetting});\r\n }\r\n\r\n updateSelectedPrinter=(selectedPrinter)=>{\r\n let slicingSetting=this.state.slicingSetting;\r\n slicingSetting.material=selectedPrinter.profile.materials[0];\r\n this.setState((state) => ({\r\n selectedPrinter: selectedPrinter,\r\n selectedPrinterText:selectedPrinter.iotPrinter.name,\r\n meterialOptions:selectedPrinter.profile.materials,\r\n slicingSetting,\r\n }));\r\n }\r\n\r\n transportIotPrinter=(iotPrinter)=>{\r\n let profile= this.state.printerProfileList.find(v=>v.printerName===iotPrinter.type)//Todo直接 放在iotprinter里\r\n return {iotPrinter:iotPrinter,profile:profile}\r\n }\r\n \r\n getPrinterProfile=()=>{\r\n let uri=`${Setting.ModelingApiStr}/redirect/printer_profile_list_v2`;\r\n fetch(uri, {\r\n method: 'Get',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n },\r\n }) \r\n .then((response) => response.json()) \r\n .then((responseData) => { \r\n this.setState({printerProfileList:responseData.printerProfileList})\r\n })\r\n .catch(error => {\r\n console.error('error', error);\r\n });\r\n\r\n }\r\n//\r\n showSlicingProgress=(taskId)=>{\r\n this.setState({progressModalVisible:true});\r\n //TODO 好像因为网络关系下一次请求会提前到达\r\n let timerIndex=setInterval(()=>{\r\n let uri=`${Setting.ModelingApiStr}/task/progressClientRedirect/print/${taskId}`;\r\n fetch(uri, {\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'Authorization':`Bearer ${this.state.accessToken}`\r\n },\r\n }) \r\n .then((response) => response.json()) \r\n .then(jsonData=>{\r\n let mes=\"\";\r\n switch(jsonData.status){\r\n case \"ComputingRequest\":\r\n mes=i18next.t(\"modeling:Requesting\");//\"内部通信中\";\r\n break;\r\n case \"TaskCreated\":\r\n mes=i18next.t(\"modeling:Task Created\");//\"任务已创建\";\r\n break;\r\n case \"Queuing\":\r\n mes=i18next.t(\"modeling:Queuing\");//\"排队中\";\r\n break;\r\n case \"Slicing\":\r\n mes=i18next.t(\"modeling:Slicing\");//\"切片中\";\r\n break;\r\n case \"SlicingFinished\":\r\n mes=i18next.t(\"modeling:Slicing finished\");//\"切片完成\";\r\n break;\r\n case \"GcodeUploading\":\r\n mes=i18next.t(\"modeling:Gcode uploading\");//\"Gcode文件保存中\";\r\n break;\r\n case \"GcodeUploaded\":\r\n mes=i18next.t(\"modeling:Gcode uploaded\");//\"Gcode文件保存完成\";\r\n break;\r\n case \"PrintCmdSent\":\r\n mes=i18next.t(\"modeling:Print command has been sent\");//\"打印命令已发送给打印机。 可在监控页面查看打印任务进度\";//只在当前页面显示后半句\r\n break;\r\n case \"Error\":\r\n mes=i18next.t(\"modeling:Error type\")+`:${jsonData.errorType}; `+i18next.t(\"modeling:Error content\")+`:${jsonData.errorMes}`;\r\n break;\r\n default :\r\n mes=i18next.t(\"modeling:Unkown error\");\r\n }\r\n this.setState({progressInModal:{percent:jsonData.progress,message:mes}});\r\n if(jsonData.progress==100||jsonData.status===\"Error\"){\r\n clearInterval(timerIndex);\r\n }\r\n })\r\n .catch(error=>{\r\n this.setState((state) => ({progressInModal:{percent:state.progressInModal.progress,message:error}}));\r\n clearInterval(timerIndex);\r\n }); \r\n },1000);\r\n this.setState({timerIndex});\r\n }\r\n /*uniapp webview跳转到app内部页面\r\n https://ask.dcloud.net.cn/article/35083\r\n */\r\n progressModalClose=()=>{\r\n clearInterval(this.state.timerIndex);\r\n this.setState({\r\n progressModalVisible:false,\r\n progressInModal:{percent:0,message:i18next.t(\"slicing:Preparing to slicing\")+'...'}\r\n }); \r\n }\r\n/**/\r\n render() {\r\n // gl={{ antialias: true }}\r\n //const { visible, loading } = this.state;\r\n //输入框可能要放上面,在uniapp有的时候弹出小键盘不会自动弹输入框不会自动弹上去\r\n return (\r\n
\r\n \r\n }>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {/*
\r\n
* plainLength  {this.state.plainLength} *
\r\n
*/}\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n <>\r\n \r\n {this.setState({carNumberText:e.target.value})}}\r\n // onFocus={this.setCarNumberContentUp}\r\n // onBlur={this.setCarNumberContentDown}\r\n // onPressEnter={this.setCarNumberContentDown}\r\n />\r\n \r\n \r\n
\r\n\r\n \r\n {i18next.t(\"modeling:Cancel\")}\r\n ,\r\n \r\n ]}\r\n >\r\n \r\n

{i18next.t(\"modeling:GroupName\")}

\r\n {this.setState({projectTempName: e.target.value});}}/>\r\n

{i18next.t(\"modeling:GroupDescription\")}

\r\n