parent
8cccd5f013
commit
79a08504b7
Binary file not shown.
Binary file not shown.
@ -0,0 +1,8 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="Flask">
|
||||
<option name="enabled" value="true" />
|
||||
</component>
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
<component name="TemplatesService">
|
||||
<option name="TEMPLATE_CONFIGURATION" value="Jinja2" />
|
||||
</component>
|
||||
</module>
|
@ -0,0 +1,14 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<profile version="1.0">
|
||||
<option name="myName" value="Project Default" />
|
||||
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
||||
<option name="ignoredPackages">
|
||||
<value>
|
||||
<list size="1">
|
||||
<item index="0" class="java.lang.String" itemvalue="st-chat" />
|
||||
</list>
|
||||
</value>
|
||||
</option>
|
||||
</inspection_tool>
|
||||
</profile>
|
||||
</component>
|
@ -0,0 +1,6 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<settings>
|
||||
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||
<version value="1.0" />
|
||||
</settings>
|
||||
</component>
|
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.7 (gpt4free-main)" project-jdk-type="Python SDK" />
|
||||
</project>
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/ETL.iml" filepath="$PROJECT_DIR$/.idea/ETL.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
||||
</component>
|
||||
</project>
|
@ -1,33 +0,0 @@
|
||||
package Tools;
|
||||
|
||||
import cn.hutool.core.io.FileUtil;
|
||||
import cn.hutool.core.io.file.FileReader;
|
||||
import cn.hutool.core.io.file.FileWriter;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public class XT_ChangeLiziToBaoBiao {
|
||||
public static void main(String[] args) {
|
||||
|
||||
String path = "C:\\20230323";
|
||||
File[] f1s = FileUtil.ls(path);
|
||||
for (File f1 : f1s) {
|
||||
if (f1.isDirectory()) {
|
||||
File[] f2s = FileUtil.ls(f1.getAbsoluteFile().toString());
|
||||
for (File f2 : f2s) {
|
||||
if (f2.getName().equals("index.html")) {
|
||||
FileReader f = new FileReader(f2);
|
||||
String t = f.readString();
|
||||
t=t.replace("例子","报表");
|
||||
//保存
|
||||
String finalString = f1.getAbsoluteFile() + "\\index.html";
|
||||
if (FileUtil.exist(finalString)) FileUtil.del(finalString);
|
||||
FileWriter writer = new FileWriter(finalString);
|
||||
writer.write(t);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
System.out.println("恭喜,所有操作成功完成!");
|
||||
}
|
||||
}
|
@ -1,41 +0,0 @@
|
||||
package Tools;
|
||||
|
||||
import cn.hutool.core.io.FileUtil;
|
||||
import cn.hutool.core.io.file.FileReader;
|
||||
import cn.hutool.core.io.file.FileWriter;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public class XT_OneKeyIframe {
|
||||
public static void main(String[] args) {
|
||||
String template = "D:\\dsWork\\baseService\\Doc\\Template.html";
|
||||
FileReader fileReader = new FileReader(template);
|
||||
String templateContent = fileReader.readString();
|
||||
|
||||
String path = "D:\\dsWork\\baseService\\Doc\\Test";
|
||||
File[] f1s = FileUtil.ls(path);
|
||||
for (File f1 : f1s) {
|
||||
if (f1.isDirectory()) {
|
||||
//
|
||||
String run = templateContent;
|
||||
File[] f2s = FileUtil.ls(f1.getAbsoluteFile().toString());
|
||||
int cnt = 0;
|
||||
String iframe = "";
|
||||
String height = "400px";
|
||||
if (f2s.length == 1) height = "100%";
|
||||
for (File f2 : f2s) {
|
||||
cnt++;
|
||||
iframe = iframe + "\n" + "<iframe border=0 marginWidth=0 frameSpacing=0 marginHeight=0 src='" + f2.getAbsoluteFile().getName()
|
||||
+ "' frameBorder=0 noResize scrolling='no' width='100%' height='" + height + "' vspale='0' id='childFrame" + cnt + "'></iframe>";
|
||||
}
|
||||
run = run.replace("{{iframe}}", iframe);
|
||||
//保存
|
||||
String finalString = f1.getAbsoluteFile() + "\\index.html";
|
||||
if (FileUtil.exist(finalString)) FileUtil.del(finalString);
|
||||
FileWriter writer = new FileWriter(finalString);
|
||||
writer.write(run);
|
||||
}
|
||||
}
|
||||
System.out.println("恭喜,所有操作成功完成!");
|
||||
}
|
||||
}
|
Loading…
Reference in new issue