Skip to content
Merged

V2 #17

Show file tree
Hide file tree
Changes from all commits
Commits
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added dist/674f50d287a8c48dc19ba404d20fe713.eot
Binary file not shown.
File renamed without changes.
Binary file removed dist/a61be9cda5272a0c94b957cb630cc970.eot
Binary file not shown.
Binary file added dist/af7ae505a9eed503f8b8e6982036873e.woff2
Binary file not shown.
Binary file removed dist/b02bdc1b846fd65473922f5f62832108.ttf
Binary file not shown.
Binary file added dist/b06871f281fee6b241d60582ae9369b9.ttf
Binary file not shown.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions dist/b67134b4df53afdfcd5565f5bb031c9f.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 8 additions & 8 deletions dist/build.js

Large diffs are not rendered by default.

Binary file removed dist/d2f69a92faa6fe990d2e613c358be705.woff
Binary file not shown.
File renamed without changes.
146 changes: 0 additions & 146 deletions dist/element-icons.svg

This file was deleted.

File renamed without changes.
1 change: 0 additions & 1 deletion dist/fec62223c84b60bdc6e03bdf1b398635.svg

This file was deleted.

Binary file added dist/fee66e712a8a08eef5805a46892932ad.woff
Binary file not shown.
2,671 changes: 2,671 additions & 0 deletions dist/fontawesome-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed dist/logo.png
Binary file not shown.
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<head>
<meta charset="utf-8">
<title>Forge Code Samples</title>
<link rel="stylesheet" href="src/styles/main.css">
</head>
<body>
<ul>
Expand All @@ -13,4 +12,4 @@
<div id="cards"></div>
<script src="dist/build.js"></script>
</body>
</html>
</html>
10 changes: 3 additions & 7 deletions src/Cards.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,10 @@ let apis = {
"Model Derivative" : [],
"Data Management" : []
} // enum list of apis with Autodesk
let i = 0;

for (let repo of reposJSON) {
// put repos in a list
repos[i] = repo;
repos.push(repo);

// map language -> repo
let language = repo.language;
Expand All @@ -59,13 +58,13 @@ for (let repo of reposJSON) {
languages[language].push(repo);
}

// TODO map api -> repo
// map api -> repo
// reg match api with the name of repo
let viewerreg = /[vV]iewer/g,
dareg = /[dD]esign.[aA]utomation/g,
mdreg = /[mM]odel.[dD]erivative/g,
dmreg = /[dD]ata.[mM]anagement/g;
// can match multiple apis
// can match multiple apis per repo
if (repo.name.match(viewerreg)) {
apis["Viewer"].push(repo);
}
Expand All @@ -78,15 +77,12 @@ for (let repo of reposJSON) {
if (repo.name.match(dmreg)) {
apis["Data Management"].push(repo);
}

i++;
}

languages.all.push(...repos);
apis.all.push(...repos);

export default {

// pass these to the page
data () {
return {
Expand Down
1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Vue from 'vue';
import Cards from './Cards.vue';
import './styles/main.css';

new Vue({
el: '#cards',
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
20 changes: 13 additions & 7 deletions src/styles/main.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
@import './font-awesome-4.7.0/css/font-awesome.min.css';
@font-face {
font-family: 'Artifakt Element';
src: url('./fonts/Element%20WEB/WOFF/Artifakt%20Element%20Regular.woff') format('woff');
src: url('./fonts/element/EOT/Artifakt_Element_Regular.eot') format('eot'),
url('./fonts/element/TTF/Artifakt_Element_Regular.ttf') format('ttf'),
url('./fonts/element/WOFF/Artifakt_Element_Regular.woff') format('woff'),
url('./fonts/element/WOFF2/Artifakt_Element_Regular.woff2') format('woff2');
}
@font-face {
font-family: 'Artifakt Legend';
src: url('./fonts/legend/EOT/Artifakt_Legend_Regular.eot') format('eot'),
url('./fonts/legend/TTF/Artifakt_Legend_Regular.ttf') format('ttf'),
url('./fonts/legend/WOFF/Artifakt_Legend_Regular.woff') format('woff'),
url('./fonts/legend/WOFF2/Artifakt_Legend_Regular.woff2') format('woff2');
}
body {
font-family: "Artifakt Element", fallback, sans-serif;
Expand Down Expand Up @@ -31,11 +41,7 @@ li a {
text-decoration: none;
}

li a:hover:not(.active) {
li a:hover {
background-color: #D17920;
color: white;
}

.active {
background-color: #4CAF50;
}
}
14 changes: 9 additions & 5 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,18 @@ module.exports = {
loader: 'babel',
exclude: /node_modules/
},
{ test: /\.css$/, loader: ExtractTextPlugin.extract({
fallbackLoader: "style-loader",
loader: "css-loader"
})
{
test: /\.css$/, loader: 'style-loader!css-loader'
},
{
test: /\.(eot|svg|ttf|woff|woff2)(\?\S*)?$/,
loader: 'file'
loader: 'file',
query: {
outputStyle: 'expanded',
includePaths: [
path.resolve(process.cwd(), "node_modules")
]
}
},
{
test: /\.(png|jpe?g|gif|svg)(\?\S*)?$/,
Expand Down