Contents Tab
  • 26 Jul 2023
  • 3 Minutes to read
  • Dark
    Light

Contents Tab

  • Dark
    Light

Article summary

The Contents tab is a clickable table of contents for the files that compose the App (Figure 1).

Graphical user interface, text, application, chat or text message  Description automatically generated

 

Note
You can drag and drop this tab into a different area of the App Builder screen, if desired.

The selected file, indicated by gray shading (e.g., app.py in Figure 1), is the file that shows in the Code Editor displayed in the center of the App Builder screen.

You can add a file to the project by dragging and dropping it into the Drop a file, or browse to upload. square or by clicking on this square to locate and select a file on your computer to upload.

Note
The code generated in the app.py file is determined by the type of App selected in the Create App window.

Select the Show non-editable files checkbox to view the files associated with the App that may not be edited (Figure 2). You can view these files in read-only form in the Code Editor, as indicated by the lockicon displayed to the right of the file name.

Graphical user interface  Description automatically generated with medium confidence

 

Although these files cannot be edited, their contents are automatically customized as you enter information into the App Builder. For example, Figure 3 shows the contents of the install.json file for the project. The name of the App is on line 3, and an App note, as entered in Markdown, is on line 13.

Graphical user interface, text, application, email  Description automatically generated

 

Files

Creating a New File

To create a new file, click Create FileIcon  Description automatically generated. The Create File window will open (Figure 4).

Graphical user interface, application  Description automatically generated

 

  • Path: The file’s path cannot be edited.
  • Name: Enter a name for the file.
  • Click the CREATE button. The new file will open in the Code Editor.

You can also create files in directories in the project contents. See the “Directory Administration” section for more information.

File Administration

You can rename or delete files that you uploaded or created. To access these administrative functions, hover the cursor over the name of the file in the Contents tab to display a horizontal ellipsis to the right of the file name (Figure 5).

Graphical user interface, text  Description automatically generated

 

Hover the cursor over the ellipsis to display two icons (Figure 6).

A picture containing graphical user interface  Description automatically generated

 

  • Delete: Click this icon to delete the file. The Confirm window will be displayed. Click the REMOVE button to delete the file.
  • EditIcon  Description automatically generated: Click this icon to rename the file. The Rename File window will be displayed. Enter a new name for the file, and then click the CREATE button.
Important
Files that are required by the platform installer cannot be renamed or deleted.

Directories

Creating a New Directory

To create a new directory, click Create DirectoryA picture containing text, first-aid kit  Description automatically generated. The Create Directory window will be displayed (Figure 7).

Graphical user interface, application  Description automatically generated

 

  • Path: The directory’s path cannot be edited.
  • Name: Enter a name for the directory.
  • Click the CREATE button. The new directory will be displayed in the Contents tab.
Important
You may not select directories for viewing in the Code Editor because they are not files.

Directory Administration

To access the administrative functions that may be performed on directories, hover the cursor over the name of the directory in the Contents tab to display a horizontal ellipsis to the right of the directory name (Figure 8).

Graphical user interface, application, chat or text message  Description automatically generated

 

Hover the cursor over the ellipsis to display five icons (Figure 9).

A picture containing text, first-aid kit  Description automatically generated

 

To upload a file to the directory, click Upload File. Select a file for upload from the file manager window that is displayed.

To create a new directory in the directory (i.e., a sub-directory), click Create DirectoryA picture containing text, first-aid kit  Description automatically generated. The Create Directory window will be displayed (Figure 10).

Graphical user interface, application  Description automatically generated

 

  • Path: The directory’s path. In this example, the path indicates that the new directory will be in the existing directory (New Directory). The Path field cannot be edited.
  • Name: Enter a Name for the directory.
  • Click the CREATE button. The new directory will be displayed in the Contents tab within the original directory.

To create a file in the directory, click Create FileIcon  Description automatically generated. The Create File window will be displayed (Figure 11).

Graphical user interface, application  Description automatically generated

 

  • Path: The file’s path. In this example, the path indicates that the new file will be in the directory. The Path field cannot be edited.
  • Name: Enter a name for the file.
  • Click the CREATE button. The new file will open in the Code Editor.
Note
Once a directory contains at least one file, its contents can be collapsed and expanded by clicking on the arrow to its left.

To delete the directory, click Delete. The Confirm window will be displayed. Click the REMOVE button to delete the directory.

To rename the directory, click EditIcon  Description automatically generated. The Rename Directory window will be displayed. Enter a new name for the directory, and then click the CREATE button.


ThreatConnect® is a registered trademark of ThreatConnect, Inc.

20084-07 v.07.B


Was this article helpful?

What's Next