Skip to content

Commit 6236de8

Browse files
committed
Move imports to top of file
1 parent c93e1fe commit 6236de8

File tree

23 files changed

+53
-50
lines changed

23 files changed

+53
-50
lines changed

docs/components.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ description: Ionic Framework comes stock with a number of high-level UI componen
44
hide_table_of_contents: true
55
---
66

7+
import DocsCard from '@site/src/components/DocsCard';
8+
import DocsCards from '@site/src/components/DocsCards';
9+
710
# UI Components
811

912
Ionic apps are made of high-level building blocks called Components, which allow you to quickly construct the UI for your app. Ionic comes stock with a number of components, including cards, lists, and tabs. Once you’re familiar with the basics, refer to the [API Index](/docs/api) for a complete list of each component and sub-component.
1013

11-
import DocsCard from '@site/src/components/DocsCard';
12-
import DocsCards from '@site/src/components/DocsCards';
13-
1414
<DocsCards>
1515
<DocsCard header="Action Sheet" href="/docs/api/action-sheet" img="/icons/feature-component-actionsheet-icon.png">
1616
<p>Action Sheets display a set of options with the ability to confirm or cancel an action.</p>

docs/deployment/progressive-web-app.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ contributors:
55
- mhartington
66
---
77

8+
import DocsCard from '@site/src/components/DocsCard';
9+
import DocsCards from '@site/src/components/DocsCards';
10+
811
# Deploying a Progressive Web App
912

1013
Because Ionic Apps are built with web technologies, they can run just as well as a Progressive Web App as they can a native app. Not sure what PWAs are? Check out Ionic's <a href="https://ionicframework.com/pwa" target="_blank">PWA Overview</a> or the <a href="/docs/core-concepts/what-are-progressive-web-apps">What are Progressive Web Apps</a> page for more info.
1114

1215
For the frameworks Ionic supports, we've created dedicated guides that go into more detail. Below are links for Angular and React.
1316

14-
import DocsCard from '@site/src/components/DocsCard';
15-
import DocsCards from '@site/src/components/DocsCards';
16-
1717
<DocsCards>
1818
<DocsCard header="Angular" href="/docs/angular/pwa" img="/img/frameworks/angular.svg"></DocsCard>
1919
<DocsCard header="React" href="/docs/react/pwa" img="/img/frameworks/react.svg"></DocsCard>

docs/developer-resources/guides/first-app-v4/creating-photo-gallery-device-storage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ contributors:
33
- jsonMartin
44
---
55

6+
import DocsButton from '@site/src/components/DocsButton';
7+
68
# Creating a Photo Gallery with Device Storage
79

810
Last time, we successfully added the Camera plugin to the Tab2 page of our Tabs app. Currently, the photo is replaced each time a new one is taken. What if we wanted to display multiple photos together? Let’s create a photo gallery. You can follow along with the complete code for this [on GitHub](https://github.com/ionic-team/photo-gallery-tutorial-ionic4).
@@ -195,8 +197,6 @@ Sweet! Photos are now saved to your device. To demonstrate that they are indeed
195197

196198
Next up, we’ll look at how to apply a custom theme to an Ionic app.
197199

198-
import DocsButton from '@site/src/components/DocsButton';
199-
200200
<div style={{textAlign: 'right'}}>
201201
<DocsButton href="/docs/angular/your-first-app/theming">Continue <svg viewBox="0 0 512 512"><path d="M294.1 256L167 129c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.3 34 0L345 239c9.1 9.1 9.3 23.7.7 33.1L201.1 417c-4.7 4.7-10.9 7-17 7s-12.3-2.3-17-7c-9.4-9.4-9.4-24.6 0-33.9l127-127.1z"></path></svg></DocsButton>
202202
</div>

docs/developing/hardware-back-button.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
---
3+
34
import Tabs from '@theme/Tabs';
45
import TabItem from '@theme/TabItem';
56

docs/developing/keyboard.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
---
3+
4+
import Codepen from '@site/src/components/Codepen';
35
import Tabs from '@theme/Tabs';
46
import TabItem from '@theme/TabItem';
57

@@ -88,8 +90,6 @@ For a list of accepted values, see the <a href="https://developer.mozilla.org/en
8890
</Tabs>
8991
````
9092

91-
import Codepen from '@site/src/components/Codepen';
92-
9393
<Codepen user="ionic" slug="abvJVVv" height="400" />
9494

9595
> The `inputmode` attribute is supported on devices running Chrome 66+ and iOS Safari 12.2+: https://caniuse.com/#search=inputmode

docs/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ demoUrl: https://ionic-docs-demo.herokuapp.com/
1111
demoSourceUrl: https://github.com/ionic-team/docs-demo
1212
---
1313

14+
import DocsCard from '@site/src/components/DocsCard';
15+
import DocsCards from '@site/src/components/DocsCards';
16+
1417
Ionic Framework is an open source UI toolkit for building performant, high-quality mobile and desktop apps using web technologies — HTML, CSS, and JavaScript — with integrations for popular frameworks like <a href="/docs/angular/overview"> Angular</a>, <a href="/docs/react/overview">React</a>, and <a href="/docs/vue/overview">Vue</a>.
1518

1619
Get started building by <a href="/docs/intro/cli">installing Ionic</a> or following our <a href="/docs/intro/next#build-your-first-app">First App Tutorial</a> to learn the main concepts.
1720

18-
import DocsCard from '@site/src/components/DocsCard';
19-
import DocsCards from '@site/src/components/DocsCards';
20-
2121
<DocsCards>
2222
<DocsCard header="Installation Guide" href="/docs/intro/cli" icon="/icons/guide-installation-icon.svg" hover-icon="/icons/guide-installation-icon-hover.svg">
2323
<p>Step-by-step guides to setting up your system and installing the framework.</p>

docs/intro/first-app.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
hide_table_of_contents: true
33
---
44

5+
import DocsCard from '@site/src/components/DocsCard';
6+
import DocsCards from '@site/src/components/DocsCards';
7+
58
# Build Your First App Tutorial
69

710
Pick the JavaScript framework you plan to use while building your Ionic app:
811

9-
import DocsCard from '@site/src/components/DocsCard';
10-
import DocsCards from '@site/src/components/DocsCards';
11-
1212
<DocsCards>
1313
<DocsCard header="Start with Angular" href="/docs/angular/your-first-app" icon="/icons/logo-angular-icon.png">
1414
<p>A complete guide to get you up to speed with the basics of building Ionic apps with Angular.</p>

docs/intro/next.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
---
33

4+
import DocsCard from '@site/src/components/DocsCard';
5+
import DocsCards from '@site/src/components/DocsCards';
6+
47
# Next Steps
58

69
## Build Your First App
710

811
Pick the JavaScript framework you plan to use while building your Ionic app:
912

10-
import DocsCard from '@site/src/components/DocsCard';
11-
import DocsCards from '@site/src/components/DocsCards';
12-
1313
<DocsCards>
1414
<DocsCard header="Start with Angular" href="/docs/angular/your-first-app" icon="/icons/logo-angular-icon.png">
1515
<p>A complete guide to get you up to speed with the basics of building Ionic apps with Angular.</p>

docs/layout/structure.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ contributors:
44
- brandyscarney
55
---
66

7+
import DocsCard from '@site/src/components/DocsCard';
8+
import DocsCards from '@site/src/components/DocsCards';
9+
710
# Structure
811

912
Ionic Framework provides several different layouts that can be used to structure an app. From single page layouts, to split pane views and modals.
@@ -12,9 +15,6 @@ Ionic Framework provides several different layouts that can be used to structure
1215

1316
### Header
1417

15-
import DocsCard from '@site/src/components/DocsCard';
16-
import DocsCards from '@site/src/components/DocsCards';
17-
1818
<aside>
1919
<DocsCard href="/docs/api/header" header="Learn More" icon="/icons/component-header-icon.png">
2020
<code>ion-header</code> API docs

docs/native.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ meta:
55
description: Build native application experiences with open-source Native APIs. Easily add native device functionality to any Ionic app with Capacitor or Cordova.
66
hide_table_of_contents: true
77
---
8+
89
import DocsCard from '@site/src/components/DocsCard';
910
import DocsCards from '@site/src/components/DocsCards';
1011
import { Helmet } from "react-helmet";

0 commit comments

Comments
 (0)