Skip to content

Commit

Permalink
Update Node APis template
Browse files Browse the repository at this point in the history
  • Loading branch information
cezaraugusto committed Sep 22, 2024
1 parent b30653e commit b1fc141
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions examples/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,15 @@ const CUSTOM_TEMPLATES: Template[] = [
hasEnv: false,
configFiles: ['tsconfig.json', 'extension.config.js']
},
{
name: 'new-node-apis',
uiContext: ['newTab'],
uiFramework: undefined,
css: 'css',
hasBackground: false,
hasEnv: false,
configFiles: ['tsconfig.json', 'extension.config.js']
},
{
name: 'content-react-svgr',
uiContext: ['content'],
Expand Down
4 changes: 2 additions & 2 deletions examples/new-node-apis/newtab/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Crypto Extension</title>
<title>Node APIs</title>
<link rel="stylesheet" href="./styles.css" media="screen" />
</head>
<body>
<header>
<h1>
<img class="crypto" src="/logo.svg" alt="The Crypto Template logo" width="120px" />
<br />
Welcome to your Crypto Extension.
Welcome to your Node APIs Extension.
</h1>
<article>
<label for="input-text">Enter a string to hash</label>
Expand Down
2 changes: 1 addition & 1 deletion examples/new-node-apis/template.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import path from 'path'
import {execSync} from 'child_process'
import {extensionFixtures} from '../extension-fixtures'

const exampleDir = 'examples/new-crypto'
const exampleDir = 'examples/new-node-apis'
const pathToExtension = path.join(__dirname, `dist/chrome`)
const test = extensionFixtures(pathToExtension, true)

Expand Down

0 comments on commit b1fc141

Please sign in to comment.