Skip to content

Commit bc9fe5a

Browse files
committed
chore(structure): update doc
1 parent 592c05a commit bc9fe5a

File tree

13 files changed

+207
-141
lines changed

13 files changed

+207
-141
lines changed

samples/speech-to-speech/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
*.js
21
!jest.config.js
32
*.d.ts
43
node_modules

samples/speech-to-speech/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ $ aws cloudformation describe-stacks --stack-name NovaSonicSolutionBackendStack
187187
6. Click "Stop Streaming" when you're done
188188
189189
![Speech to Speech Interface](docs/images/speechToSpeech_home.png)
190-
191190
192191
> Note: Ensure your microphone is properly connected and working before testing. The browser may require you to grant microphone permissions the first time you use the feature.
193192
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
//
2+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
5+
// with the License. A copy of the License is located at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
10+
// OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
11+
// and limitations under the License.
12+
//
13+
14+
module.exports = {
15+
root: true,
16+
env: { browser: true, es2020: true },
17+
extends: [
18+
"eslint:recommended",
19+
"plugin:@typescript-eslint/recommended",
20+
"plugin:react-hooks/recommended",
21+
],
22+
ignorePatterns: ["dist", ".eslintrc.cjs"],
23+
parser: "@typescript-eslint/parser",
24+
plugins: ["react-refresh"],
25+
rules: {
26+
"react-refresh/only-export-components": [
27+
"warn",
28+
{ allowConstantExport: true },
29+
],
30+
},
31+
};
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
VITE_REGION_NAME=<NovaSonicSolutionBackendStack.RegionName>
2+
VITE_COGNITO_USER_POOL_ID=<NovaSonicSolutionBackendStack.CognitoUserPoolId>
3+
VITE_COGNITO_USER_POOL_CLIENT_ID=<NovaSonicSolutionBackendStack.CognitoUserPoolClientId>
4+
VITE_COGNITO_IDENTITY_POOL_ID=<NovaSonicSolutionBackendStack.CognitoIdentityPoolId>
5+
VITE_LOAD_BALANCER_DNS=<NovaSonicSolutionBackendStack.LoadBalancerDNS>
6+
VITE_DEPLOYMENT_TYPE="local"
7+
VITE_APP_NAME="Bedrock Nova Sonic Solution"
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
!jest.config.js
2+
# *.d.ts
3+
node_modules
4+
5+
# CDK asset staging directory
6+
.cdk.staging
7+
cdk.out
8+
9+
# Logs
10+
logs
11+
*.log
12+
npm-debug.log*
13+
yarn-debug.log*
14+
yarn-error.log*
15+
pnpm-debug.log*
16+
lerna-debug.log*
17+
18+
dist
19+
webapp/dist
20+
dist-ssr
21+
webapp/dist-ssr
22+
*.local
23+
webapp/*.local
24+
25+
# Editor directories and files
26+
.vscode/*
27+
!.vscode/extensions.json
28+
.idea
29+
.DS_Store
30+
*.suo
31+
*.ntvs*
32+
*.njsproj
33+
*.sln
34+
*.sw?
35+
.env
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
*.ts
2+
!*.d.ts
3+
4+
# CDK asset staging directory
5+
.cdk.staging
6+
cdk.out

samples/speech-to-speech/frontend/generate-dev-env.sh

Lines changed: 0 additions & 78 deletions
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
//
2+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
5+
// with the License. A copy of the License is located at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
10+
// OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
11+
// and limitations under the License.
12+
//
13+
14+
export default {
15+
plugins: {
16+
"postcss-import": {},
17+
"tailwindcss/nesting": {},
18+
tailwindcss: {},
19+
autoprefixer: {},
20+
},
21+
};
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//
2+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
5+
// with the License. A copy of the License is located at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
10+
// OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
11+
// and limitations under the License.
12+
//
13+
export default {
14+
plugins: ["prettier-plugin-tailwindcss"],
15+
};

samples/speech-to-speech/frontend/src/App.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
import { BDAProvider } from "@/contexts/BDAContext";
21
import { BrowserRouter as Router, Routes } from "react-router-dom";
32

43
function App() {
54
return (
6-
<BDAProvider>
75
<Router>
86
<Routes>
97
{/* Routes configuration */}
108
</Routes>
119
</Router>
12-
</BDAProvider>
1310
);
1411
}
1512

0 commit comments

Comments
 (0)