Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f273452
commit d692446
Showing
18 changed files
with
365 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
<tc-viewport> | ||
<tc-container size="sm"> | ||
<t-row> | ||
<t-col> | ||
<h1>Fundamentals</h1> | ||
<p> | ||
Taslonic components help you to get rid of the trivial work present | ||
in your daily routine. It makes you think less about the means and | ||
turns your energy and care to what matters, the end. | ||
</p> | ||
</t-col> | ||
</t-row> | ||
<t-row> | ||
<t-col> | ||
<t-button tag="a" theme="secondary" href="/principles"> | ||
See Principles | ||
</t-button> | ||
</t-col> | ||
</t-row> | ||
</tc-container> | ||
<tc-section> | ||
<tc-container> | ||
<t-row> | ||
<t-col sm="6"> | ||
<t-row> | ||
<t-col> | ||
<h2>Submit smoothly</h2> | ||
<p> | ||
Effortless feedbacks. Validate form controls writing way less | ||
code. See how a newsletter form looks like using Taslonic | ||
components. | ||
</p> | ||
</t-col> | ||
</t-row> | ||
<t-row> | ||
<t-col> | ||
<t-button | ||
tag="a" | ||
theme="secondary" | ||
ref="noopener" | ||
target="_blank" | ||
href="https://components.taslonic.com/#!/components/react/playground?tab=1&code=eyJ0ZW1wbGF0ZSI6IlxuIiwiY29udHJvbGxlciI6ImZ1bmN0aW9uKCkge1xuICBjb25zdCB7IHVzZVN0YXRlIH0gPSBSZWFjdDtcbiAgY29uc3QgeyBSb3csIENvbCwgRm9ybSwgRmllbGQsIElucHV0LCBCdXR0b24gfSA9IHRhc2xvbmljUmVhY3Q7XG5cbiAgcmV0dXJuIGZ1bmN0aW9uKCkge1xuICAgIGNvbnN0IFtlbWFpbCwgc2V0RW1haWxdID0gdXNlU3RhdGUoJycpO1xuICAgIGNvbnN0IGVtYWlsVmFsaWR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ZWRcIlxuICAgICAgICAgID5cbiAgICAgICAgICAgIDxSb3c%252BXG4gICAgICAgICAgICAgIDxDb2w%252BXG4gICAgICAgICAgICAgICAgPEZpZWxkIGxhYmVsPVwiRW1haWwgQWRkcmVzc1wiIGJsb2NrPlxuICAgICAgICAgICAgICAgICAgPElucHV0XG4gICAgICAgICAgICAgICAgICAgIG5hbWU9XCJlbWFpbFwiXG4gICAgICAgICAgICAgICAgICAgIHZhbHVlPXtlbWFpbH1cbiAgICAgICAgICAgICAgICAgICAgb25DaGFuZ2U9e29uRW1haWxDaGFuZ2V9XG4gICAgICAgICAgICAgICAgICAgIHZhbGlkYXRpb25zPXtlbWFpbFZhbGlkYXRpb25zfVxuICAgICAgICAgICAgICAgICAgICBibG9ja1xuICAgICAgICAgICAgICAgICAgICByZXF1aXJlZFxuICAgICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgICA8L0ZpZWxkPlxuICAgICAgICAgICAgICA8L0NvbD5cbiAgICAgICAgICAgIDwvUm93PlxuICAgICAgICAgICAgPFJvdz5cbiAgICAgICAgICAgICAgPENvbD5cbiAgICAgICAgICAgICAgICA8QnV0dG9uIHR5cGU9XCJzdWJtaXRcIiB0aGVtZT1cInByaW1hcnlcIiBibG9jaz5cbiAgICAgICAgICAgICAgICAgIFN1YnNjcmliZVxuICAgICAgICAgICAgICAgIDwvQnV0dG9uPlxuICAgICAgICAgICAgICA8L0NvbD5cbiAgICAgICAgICAgIDwvUm93PlxuICAgICAgICAgIDwvRm9ybT5cbiAgICAgICAgPC9Db2w%252BXG4gICAgICA8L1Jvdz5cbiAgICApO1xuICB9O1xufSIsInN0eWxlcyI6IlxuIn0%253D&source=edit-link"> | ||
Check the code | ||
</t-button> | ||
</t-col> | ||
</t-row> | ||
</t-col> | ||
<t-col sm="6"> | ||
<t-row> | ||
<t-col> | ||
<h2>Fetch friendly</h2> | ||
<p> | ||
The Fetcher component handles exceptions by default and shows | ||
a retry button without charging one more line of code for this. | ||
</p> | ||
</t-col> | ||
</t-row> | ||
<t-row> | ||
<t-col> | ||
<t-button | ||
tag="a" | ||
theme="secondary" | ||
ref="noopener" | ||
target="_blank" | ||
href="https://components.taslonic.com/#!/components/react/playground?tab=1&code=eyJ0ZW1wbGF0ZSI6IlxuIiwiY29udHJvbGxlciI6ImZ1bmN0aW9uKCkge1xuICBjb25zdCB7IHVzZVN0YXRlIH0gPSBSZWFjdDtcbiAgY29uc3QgeyBDb2wsIFJvdywgQ2FyZCwgRmV0Y2hlciB9ID0gdGFzbG9uaWNSZWFjdDtcblxuICByZXR1cm4gZnVuY3Rpb24oKSB7XG4gICAgY29uc3QgW3JlcUNvdW50LCBzZXRSZXFDb3VudF0gPSB1c2VTdGF0ZSgwKTtcbiAgICBjb25zdCBbdXNlciwgc2V0VXNlcl0gPSB1c2VTdGF0ZSh7fSk7XG4gICAgY29uc3Qgb25GZXRjaCA9ICgpID0%252BIHtcbiAgICAgIC8vIEhlcmUncyBhIHJlcXVlc3Qgc2ltdWxhdGlvbi4gb25GZXRjaCBtdXN0IHJldHVybiBhIFByb21pc2UuXG4gICAgICByZXR1cm4gbmV3IFByb21pc2UoKHJlc29sdmUsIHJlamVjdCkgPT4ge1xuICAgICAgICBjb25zdCB1c2VyID0ge1xuICAgICAgICAgIG5hbWU6ICdSYWZhZWwgQ2FtYXJnbycsXG4gICAgICAgICAgYXZhdGFyVXJsOiAnaHR0cHM6Ly9hdmF0YXJzLmdpdGh1YnVzZXJjb250ZW50LmNvbS91LzQ3Mzg2ODc%252Fcz00MDAnLFxuICAgICAgICAgIHByb2Zlc3Npb246ICdQcm9ncmFtbWVyJyxcbiAgICAgICAgICB3ZWJzaXRlOiAnaHR0cHM6Ly93d3cucmFmYWVsY2FtYXJnby5jb20nLFxuICAgICAgICAgIGVtYWlsOiAnaGVsbG9AcmFmYWVsY2FtYXJnby5jb20nLFxuICAgICAgICAgIHR3aXR0ZXI6ICdyY2FtYXJnbydcbiAgICAgICAgfTtcbiAgICAgICAgXG4gICAgICAgIC8vIFRoaXMgaXMgYSBjb3VudGVyIHRvIGZvcmNlIGZpcnN0IHJlcXVlc3QgZmFpbCBhbmQgdGhlIHNlY29uZCBvbmUgc3VjY2VlZC5cbiAgICAgICAgY29uc3QgbmV3Q291bnQgPSByZXFDb3VudCArIDE7IFxuICAgICAgICBzZXRSZXFDb3VudChuZXdDb3VudCk7XG4gICAgICAgIFxuICAgICAgICBzZXRUaW1lb3V0KCgpID0%252BIHtcbiAgICAgICAgICBuZXdDb3VudCA%252BIDEgPyByZXNvbHZlKHsgZGF0YTogdXNlciAgfSkgOiByZWplY3QoKVxuICAgICAgICB9LCAyMDAwKTtcbiAgICAgIH0pO1xuICAgIH07XG4gICAgY29uc3Qgb25GZXRjaFN1Y2Nlc3MgPSAoeyBkYXRhIH0pID0%252BIHNldFVzZXIoZGF0YSk7XG5cbiAgICByZXR1cm4gKFxuICAgICAgPGRpdiBjbGFzc05hbWU9XCJleGFtcGxlXCI%252BXG4gICAgICAgIDxSb3cgYWxpZ249XCJjZW50ZXJcIj5cbiAgICAgICAgICA8Q29sIHNtPVwiNVwiPlxuICAgICAgICAgICAgPENhcmQ%252BXG4gICAgICAgICAgICAgIDxGZXRjaGVyIG9uRmV0Y2g9e29uRmV0Y2h9IG9uRmV0Y2hTdWNjZXNzPXtvbkZldGNoU3VjY2Vzc30%252BXG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzc05hbWU9XCJ1c2VyLWNhcmQtY29udGVudFwiPlxuICAgICAgICAgICAgICAgICAgPGltZyBzcmM9e3VzZXIuYXZhdGFyVXJsfSBhbHQ9e2Ake3VzZXIubmFtZX0ncyBBdmF0YXJgfSAvPlxuICAgICAgICAgICAgICAgICAgPGgxPnt1c2VyLm5hbWV9PC9oMT5cbiAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3NOYW1lPVwidXNlci1jYXJkLWNvbnRlbnQtcHJvZmVzc2lvblwiPnt1c2VyLnByb2Zlc3Npb259PC9kaXY%252BXG4gICAgICA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IHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XG59XG5cbi51c2VyLWNhcmQtY29udGVudCBhIHtcbiAgZGlzcGxheTogYmxvY2s7XG4gIGZvbnQtc2l6ZTogMTRweDtcbiAgY29sb3I6ICM2MjczODA7XG4gIHRleHQtZGVjb3JhdGlvbjogbm9uZTtcbn1cblxuLnVzZXItY2FyZC1jb250ZW50IGE6aG92ZXIsXG4udXNlci1jYXJkLWNvbnRlbnQgYTpmb2N1cyxcbi51c2VyLWNhcmQtY29udGVudCBhOmFjdGl2ZSB7XG4gIGNvbG9yOiAjMzI4MkUxO1xuICB0ZXh0LWRlY29yYXRpb246IHVuZGVybGluZTtcbn0ifQ%253D%253D&source=edit-link"> | ||
Check the code | ||
</t-button> | ||
</t-col> | ||
</t-row> | ||
</t-col> | ||
</t-row> | ||
</tc-container> | ||
</tc-section> | ||
<tc-container size="sm"> | ||
<t-row> | ||
<t-col> | ||
<h2>Versatile by design</h2> | ||
<p> | ||
The core of Taslonic is written in vanilla JavaScript and then made | ||
available through engine-specific wrappers. It’s compatible with | ||
the most famous technologies used to build user interfaces. | ||
</p> | ||
</t-col> | ||
</t-row> | ||
<t-row> | ||
<t-col xs="6" sm="4"> | ||
<t-button | ||
tag="a" | ||
theme="primary" | ||
href="https://components.taslonic.com/#!/components/vue/alert" | ||
target="_blank" | ||
rel="noopener" | ||
block> | ||
Vue Components | ||
</t-button> | ||
</t-col> | ||
<t-col xs="6" sm="4"> | ||
<t-button | ||
tag="a" | ||
theme="primary" | ||
href="https://components.taslonic.com/#!/components/react/alert" | ||
target="_blank" | ||
rel="noopener" | ||
block> | ||
React Components | ||
</t-button> | ||
</t-col> | ||
</t-row> | ||
</tc-container> | ||
</tc-viewport> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { tButton, tCol, tRow } from '@glorious/taslonic/vue'; | ||
import { tcCode } from '@scripts/base/components/code/code'; | ||
import { tcContainer } from '@scripts/base/components/container/container'; | ||
import { tcLink } from '@scripts/base/components/link/link'; | ||
import { tcSection } from '@scripts/base/components/section/section'; | ||
import { tcViewport } from '@scripts/base/components/viewport/viewport'; | ||
import seoService from '@scripts/base/services/seo/seo'; | ||
import template from './fundamentals.html'; | ||
|
||
const head = seoService.buildHead({ | ||
title: 'Fundamentals', | ||
description: 'Taslonic components help you to get rid of the trivial work present in your daily routine. It makes you think less about the means and turns your energy and care to what matters, the end.', | ||
keywords: 'taslonic, ui, components, vue, react, fundamentals, principles' | ||
}); | ||
|
||
const fundamentalsView = { | ||
name: 'tc-fundamentals-view', | ||
components: { | ||
tButton, | ||
tCol, | ||
tRow, | ||
tcCode, | ||
tcContainer, | ||
tcLink, | ||
tcSection, | ||
tcViewport | ||
}, | ||
head, | ||
template | ||
}; | ||
|
||
export default fundamentalsView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { shallowMount } from '@vue/test-utils'; | ||
import { tcViewport } from '@scripts/base/components/viewport/viewport' | ||
import fundamentalsView from './fundamentals'; | ||
|
||
describe('Components View', () => { | ||
function mount(){ | ||
return shallowMount(fundamentalsView); | ||
} | ||
|
||
it('should contain a viewport', () => { | ||
const wrapper = mount(); | ||
expect(wrapper.findAllComponents(tcViewport)).toHaveLength(1); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 6 additions & 5 deletions
11
src/scripts/install/views/install.js → ...cripts/installation/views/installation.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/scripts/install/views/install.test.js → ...s/installation/views/installation.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.