File size: 1,501 Bytes
8d1819a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<html>

<head>
    <title>Example secrets file</title>

</head>

<body>
    <div x-data>
        <p>You can store passwords and secrets in standard <code>.env</code> format, one per line.<br>
Add comments using <code>#</code> to help the agent understand the purpose of each secret.<br>
See example below.</p>


        <h3>Example secrets file</h3>
        <div id="secrets-example"></div>

        <script>
            setTimeout(() => {
                const envExample = `# Sales email credentials
SALES_EMAIL_USERNAME="sales@company.com"
SALES_EMAIL_PASSWORD="s3cret-p4$$w0rd"

# Search engine API keys
BRAVE_API_KEY="brv_xxxxxxxxxxxxxxxxxxxxx"
GOOGLE_API_KEY="AIzaSyD-xxxxxxxxxxxxxxxxxxxx"

# Email password for notifications
NOTIF_EMAIL_PASSWORD="another-secret-password"
`;

                const editor = ace.edit("secrets-example");
                const dark = localStorage.getItem("darkMode");
                if (dark != "false") {
                    editor.setTheme("ace/theme/github_dark");
                } else {
                    editor.setTheme("ace/theme/tomorrow");
                }
                editor.session.setMode("ace/mode/ini");
                editor.setValue(envExample);
                editor.clearSelection();
                editor.setReadOnly(true);
            }, 0);
        </script>
        <!-- </template> -->
    </div>

    <style>
        #secrets-example {
            width: 100%;
            height: 20em;
        }
    </style>

</body>

</html>