Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removes ionic #4677

Merged
merged 37 commits into from
Oct 21, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
7a9c0e8
removes ionic
rachelnabors Oct 8, 2022
961ebb7
resolving merge conflicts
rachelnabors Oct 20, 2022
850d675
scours away ionic files
rachelnabors Oct 20, 2022
5a7743a
Remove typo
timngyn Oct 20, 2022
e798729
reverting yarn upgrade. we need to update the yarn lock
rachelnabors Oct 20, 2022
6159284
Fixed type for Auth.federatedSignIn() in lib/auth/js/social (#4699)
nadetastic Oct 20, 2022
287dd42
Fix lib-v1 error where refresh on root gave 404 (#4722)
tjleing Oct 20, 2022
9f41907
fix: edits to next.js getting started to bring it current (#4672)
kevinold Oct 20, 2022
6ff16a6
Removing Responsive Components from directory
wpeck-amplify Sep 23, 2022
b570b20
Updating responsive documentation
wpeck-amplify Sep 28, 2022
5ec5134
improved docs for responsive components
wpeck-amplify Oct 19, 2022
af400c7
Updating responsive documentation
wpeck-amplify Oct 19, 2022
e639884
merging
rachelnabors Oct 21, 2022
ac6712c
Adding link to theme
wpeck-amplify Oct 19, 2022
b61eaff
minor fix
wpeck-amplify Oct 19, 2022
170cb60
another minor fix
wpeck-amplify Oct 19, 2022
bc42cf9
Update src/pages/console/uibuilder/responsive.mdx
wrpeck Oct 19, 2022
ec1d305
Update src/pages/console/uibuilder/responsive.mdx
wrpeck Oct 19, 2022
8d659fe
Update src/pages/console/uibuilder/responsive.mdx
wrpeck Oct 19, 2022
8fd41bf
Update src/pages/console/uibuilder/responsive.mdx
wrpeck Oct 19, 2022
d01dca9
Update src/pages/console/uibuilder/responsive.mdx
wrpeck Oct 19, 2022
b43c866
Update src/pages/console/uibuilder/responsive.mdx
wrpeck Oct 19, 2022
5fd3880
Update src/pages/console/uibuilder/responsive.mdx
wrpeck Oct 19, 2022
65364da
Update src/pages/console/uibuilder/responsive.mdx
wrpeck Oct 19, 2022
be718d6
Update cspell.json
wrpeck Oct 19, 2022
24542ba
requested edits to documentation
wpeck-amplify Oct 19, 2022
bde6568
Update cspell.json
wrpeck Oct 20, 2022
35cd61b
Add Android dev-preview files back (#4727)
tjleing Oct 20, 2022
33ec5a2
Update versions.ts
dengdan154 Oct 20, 2022
9e5fccc
fix: ignore queries while switching platform (#4730)
5d Oct 20, 2022
6b0e64f
Getting Started Tutorial : React update (#4676)
rachelnabors Oct 20, 2022
74e1de8
Facebook OAuth steps update (#4731)
nadetastic Oct 20, 2022
7a62862
fix: add section to clarify steps to update Cognito user email addres…
kevinold Oct 20, 2022
2d798f6
React native getting started guide updates (#4714)
Oct 21, 2022
8cf23ef
removes ionic
rachelnabors Oct 8, 2022
77b17a4
Merge branch 'main' into remove-ionic
rachelnabors Oct 21, 2022
6a3963e
omg merge conflict merginng. Much shame. Very sad.
rachelnabors Oct 21, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
"amplifyconfiguration",
"AmplifyEventBus",
"amplifyframework",
"AmplifyIonicModule",
"amplifyjsapp",
"amplifyMeta.json",
"AmplifyModules",
Expand Down Expand Up @@ -713,7 +712,6 @@
"Intelli",
"interceptApplication",
"Inventorys",
"Ionicons",
"IOPS",
"ios",
"IoT",
Expand Down
10 changes: 0 additions & 10 deletions generatePathMap.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ function generatePathMap(
'/start/q/integration/react-native': {
page: '/start/q/integration/[integration]'
},
'/start/q/integration/ionic': {
page: '/start/q/integration/[integration]'
},
'/start/q/integration/ios': {
page: '/start/q/integration/[integration]'
},
Expand Down Expand Up @@ -70,9 +67,6 @@ function generatePathMap(
'/ui/q/framework/vue': {
page: '/ui/q/framework/[framework]'
},
'/ui/q/framework/ionic': {
page: '/ui/q/framework/[framework]'
},
'/ui/q/framework/flutter': {
page: '/ui/q/framework/[framework]'
},
Expand All @@ -91,9 +85,6 @@ function generatePathMap(
'/ui-legacy/q/framework/vue': {
page: '/ui-legacy/q/framework/[framework]'
},
'/ui-legacy/q/framework/ionic': {
page: '/ui-legacy/q/framework/[framework]'
},
'/ui-legacy/q/framework/next': {
page: '/ui-legacy/q/framework/[framework]'
},
Expand Down Expand Up @@ -210,7 +201,6 @@ function generatePathMap(
'react-native',
'angular',
'vue',
'ionic',
'next'
];
}
Expand Down
9 changes: 0 additions & 9 deletions public/assets/integrations/ionic.svg

This file was deleted.

Binary file removed public/images/Logos/Ionic [email protected]
Binary file not shown.
Binary file removed public/images/Logos/[email protected]
Binary file not shown.
Binary file removed public/images/logo_ionic.png
Binary file not shown.
5 changes: 0 additions & 5 deletions src/constants/img.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,6 @@ export const VUE = {
alt: "Vue Icon",
};

export const IONIC = {
src: "/assets/integrations/ionic.svg",
alt: "Ionic Icon",
};

export const NEXT = {
src: "/assets/integrations/next.svg",
alt: "Next.js Icon",
Expand Down
10 changes: 3 additions & 7 deletions src/directory/directory.js
Original file line number Diff line number Diff line change
Expand Up @@ -2079,7 +2079,6 @@ const directory = {
'next',
'android',
'ios',
'ionic',
'flutter'
],
items: []
Expand All @@ -2099,7 +2098,6 @@ const directory = {
'next',
'android',
'ios',
'ionic',
'flutter'
]
},
Expand All @@ -2115,7 +2113,6 @@ const directory = {
'next',
'android',
'ios',
'ionic',
'flutter'
]
},
Expand All @@ -2137,17 +2134,17 @@ const directory = {
{
title: 'Connect API and database to the app',
route: '/start/getting-started/data-model',
filters: ['js', 'react', 'angular', 'vue', 'next', 'ionic']
filters: ['js', 'react', 'angular', 'vue', 'next']
},
{
title: 'Add authentication',
route: '/start/getting-started/auth',
filters: ['react', 'angular', 'vue', 'ionic']
filters: ['react', 'angular', 'vue']
},
{
title: 'Deploy and host app',
route: '/start/getting-started/hosting',
filters: ['js', 'react', 'angular', 'vue', 'next', 'ionic']
filters: ['js', 'react', 'angular', 'vue', 'next']
},
{
title: 'Next steps',
Expand All @@ -2161,7 +2158,6 @@ const directory = {
'next',
'android',
'ios',
'ionic',
'flutter'
]
}
Expand Down
4 changes: 2 additions & 2 deletions src/fragments/guides/hosting/git-based-deployments.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ In this example we will be deploying a __React__ app, but you can also also use
1. Static HTML
2. Vue
3. Angular
4. Ionic
5. Gatsby
4. Solid
5. Svelte

## 1. Create a new application

Expand Down
4 changes: 2 additions & 2 deletions src/fragments/guides/hosting/local-deployments.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ In this example you will be deploying a React app, but you can also also use any
1. Static HTML
2. Vue
3. Angular
4. Ionic
5. Gatsby
4. Solid
5. Svelte

## 1. Create a new web app and change into the directory

Expand Down
2 changes: 1 addition & 1 deletion src/fragments/lib-v1/geo/js/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ npm install aws-amplify

> **Note:** Make sure that version `4.3.0` or above is installed.

Import and load the configuration file generated in previous step using Amplify CLI in your app. It’s recommended you add the Amplify configuration step to your app’s root entry point. For example `src/index.js` in a `create-react-app` generated React application or `main.ts` in Angular or Ionic.
Import and load the configuration file generated in previous step using Amplify CLI in your app. It’s recommended you add the Amplify configuration step to your app’s root entry point. For example `src/index.js` in a `create-react-app` generated React application or `main.ts` in Angular.

```javascript
import { Amplify } from 'aws-amplify';
Expand Down
2 changes: 1 addition & 1 deletion src/fragments/lib-v1/js.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Amplify JavaScript

The Amplify JavaScript libraries are supported for different web and mobile frameworks including React, React Native, Angular, Ionic, and Vue. It is recommended that you first complete the [Getting Started](https://docs.amplify.aws/start/q/integration/js/) guide for Amplify JavaScript.
The Amplify JavaScript libraries are supported for different web and mobile frameworks including React, React Native, Angular, and Vue. It is recommended that you first complete the [Getting Started](https://docs.amplify.aws/start/q/integration/js/) guide for Amplify JavaScript.

What's next? Here are some things you can add to your app:

Expand Down
2 changes: 1 addition & 1 deletion src/fragments/lib-v1/predictions/js/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ A configuration file called `aws-exports.js` will be copied to your configured s

## Configure the frontend

Import and load the configuration file in your app. It's recommended you add the Amplify configuration step to your app's root entry point. For example `App.js` in React or `main.ts` in Angular or Ionic.
Import and load the configuration file in your app. It's recommended you add the Amplify configuration step to your app's root entry point. For example `App.js` in React or `main.ts` in Angular.

```javascript
import { Amplify } from 'aws-amplify';
Expand Down
168 changes: 1 addition & 167 deletions src/fragments/lib-v1/predictions/js/sample.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -460,170 +460,4 @@ function App() {
export default App;
```

Now run `yarn start` and press the buttons to demo the app.

## Sample Ionic app

First, be sure you have the latest Ionic CLI installed, then generate a new app (for this example you can use any template, but it's simplest to start with the Blank template to start):

```bash
npm i -g ionic
ionic start predictions blank # the first argument is your project name, the second the template
```

Update the `src/polyfills.ts` and add to the top of the file `(window as any).global = window;`. Then, update the `src/tsconfig.app.json` file and add the "node" types:

```
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/app",
"types": ["node"]
},
"exclude": [
"test.ts",
"**/*.spec.ts"
]
}

```

`src/app/home/home.page.ts`

```javascript
import { Component } from '@angular/core';
import Predictions from '@aws-amplify/predictions';
import { TextToSpeechOutput } from '@aws-amplify/predictions/lib-v1/types';

@Component({
selector: 'app-home',
templateUrl: 'home.page.html',
styleUrls: ['home.page.scss'],
})
export class HomePage {

public textToTranslate = "Hello Amplify";
public translateResult = "";
public srcLang = "en";
public targetLang = "de";
public voiceId = "Salli";
public speechUrl:string;
public speakResult:boolean;

constructor() {}

public async translate() {
const result = await Predictions.convert({
translateText: {
source: {
text: this.textToTranslate,
language : this.srcLang
},
targetLanguage: this.targetLang
}
});
this.translateResult = result.text || "Error";
if (this.speakResult) {
this.generateSpeech(result.text);
}
}

public async generateSpeech(textToGenerateSpeech: string) {
const result:TextToSpeechOutput = await Predictions.convert({
textToSpeech: {
source: {
text: textToGenerateSpeech,
},
voiceId: this.voiceId
}
});
const audioCtx = new ((window as any).AudioContext || (window as any).webkitAudioContext)();
const source = audioCtx.createBufferSource();
audioCtx.decodeAudioData(result.audioStream, (buffer) => {
source.buffer = buffer;
source.connect(audioCtx.destination);
source.start(audioCtx.currentTime);
}, (err) => console.log({err}));
}

public selectSource(value: string) {
this.srcLang = value;
}

public selectTarget(value: string) {
this.targetLang = value;
}

}

```

#### `src/app/home/home.page.html`

```html
<ion-header>
<ion-toolbar>
<ion-title>
Amplify Predictions
</ion-title>
</ion-toolbar>
</ion-header>

<ion-content>
<ion-card class="welcome-card">
<ion-card-header>
<ion-card-title>Convert</ion-card-title>
<ion-card-subtitle>Translate languages</ion-card-subtitle>
</ion-card-header>
<ion-card-content>

<ion-list>
<ion-item>
<ion-label>Source Language</ion-label>
<ion-select #srcLang placeholder="Source Language" (ionChange)="selectSource(srcLang.value)">
<ion-select-option value="en" selected>English</ion-select-option>
<ion-select-option value="es">Spanish</ion-select-option>
<ion-select-option value="de">German</ion-select-option>
<ion-select-option value="no">Norwegian</ion-select-option>
</ion-select>
</ion-item>

<ion-item>
<ion-label>Target Language</ion-label>
<ion-select #targetLang placeholder="Target Language" (ionChange)="selectTarget(targetLang.value)">
<ion-select-option value="en">English</ion-select-option>
<ion-select-option value="es">Spanish</ion-select-option>
<ion-select-option value="de" selected>German</ion-select-option>
<ion-select-option value="no">Norwegian</ion-select-option>
</ion-select>
</ion-item>
</ion-list>

<ion-grid>
<ion-row>
<ion-col align-self-center>
<textarea placeholder="Text to translate" [(ngModel)]="textToTranslate" rows="5" cols="30"></textarea>
</ion-col>
</ion-row>
<ion-row>
<ion-col size="6">
<ion-button (click)="translate()" [disabled]="!textToTranslate">Translate</ion-button>
</ion-col>
<ion-col size="6" align-self-center>
<ion-checkbox color="primary" [(ngModel)]="speakResult"></ion-checkbox> &nbsp;
<ion-label>Speak Result</ion-label>
</ion-col>
</ion-row>
<ion-row>
<ion-col align-self-center>
<textarea placeholder="Translation will display here" [value]="translateResult" rows="5" cols="30"></textarea>
</ion-col>
</ion-row>
</ion-grid>

</ion-card-content>
</ion-card>

</ion-content>

```
Now run `yarn start` and press the buttons to demo the app.
2 changes: 1 addition & 1 deletion src/fragments/lib/geo/js/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ npm install aws-amplify

> **Note:** Make sure that version `4.3.0` or above is installed.

Import and load the configuration file generated in previous step using Amplify CLI in your app. It’s recommended you add the Amplify configuration step to your app’s root entry point. For example `src/index.js` in a `create-react-app` generated React application or `main.ts` in Angular or Ionic.
Import and load the configuration file generated in previous step using Amplify CLI in your app. It’s recommended you add the Amplify configuration step to your app’s root entry point. For example `src/index.js` in a `create-react-app` generated React application or `main.ts` in Angular.

```javascript
import { Amplify } from 'aws-amplify';
Expand Down
2 changes: 1 addition & 1 deletion src/fragments/lib/js.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Amplify JavaScript

The Amplify JavaScript libraries are supported for different web and mobile frameworks including React, React Native, Angular, Ionic, and Vue. It is recommended that you first complete the [Getting Started](https://docs.amplify.aws/start/q/integration/js/) guide for Amplify JavaScript.
The Amplify JavaScript libraries are supported for different web and mobile frameworks including React, React Native, Angular, Solid, and Vue. It is recommended that you first complete the [Getting Started](https://docs.amplify.aws/start/q/integration/js/) guide for Amplify JavaScript.

What's next? Here are some things you can add to your app:

Expand Down
2 changes: 1 addition & 1 deletion src/fragments/lib/predictions/js/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ A configuration file called `aws-exports.js` will be copied to your configured s

## Configure the frontend

Import and load the configuration file in your app. It's recommended you add the Amplify configuration step to your app's root entry point. For example `App.js` in React or `main.ts` in Angular or Ionic.
Import and load the configuration file in your app. It's recommended you add the Amplify configuration step to your app's root entry point. For example `App.js` in React or `main.ts` in Angular.

```javascript
import { Amplify } from 'aws-amplify';
Expand Down
Loading