Skip to content

Commit a22d287

Browse files
Update packaged and external links
1 parent bd08083 commit a22d287

18 files changed

+849
-452
lines changed

package-lock.json

Lines changed: 371 additions & 352 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@
1111
"format": "prettier --write --plugin-search-dir=. ."
1212
},
1313
"devDependencies": {
14-
"@sveltejs/adapter-static": "^1.0.0-next.13",
14+
"@sveltejs/adapter-static": "^1.0.0-next.19",
1515
"@sveltejs/kit": "next",
1616
"@tailwindcss/typography": "^0.4.1",
17-
"@types/js-yaml": "^4.0.1",
18-
"@typescript-eslint/eslint-plugin": "^4.19.0",
19-
"@typescript-eslint/parser": "^4.19.0",
20-
"autoprefixer": "^10.2.6",
21-
"cssnano": "^5.0.6",
22-
"eslint": "^7.22.0",
17+
"@types/js-yaml": "^4.0.3",
18+
"@typescript-eslint/eslint-plugin": "^4.31.2",
19+
"@typescript-eslint/parser": "^4.31.2",
20+
"autoprefixer": "^10.3.4",
21+
"cssnano": "^5.0.8",
22+
"eslint": "^7.32.0",
2323
"eslint-config-prettier": "^8.1.0",
24-
"eslint-plugin-svelte3": "^3.2.0",
24+
"eslint-plugin-svelte3": "^3.2.1",
2525
"js-yaml": "^3.14.1",
26-
"postcss": "^8.3.5",
26+
"postcss": "^8.3.6",
2727
"postcss-load-config": "^3.1.0",
2828
"prettier": "~2.2.1",
29-
"prettier-plugin-svelte": "^2.2.0",
29+
"prettier-plugin-svelte": "^2.4.0",
3030
"rehype-autolink-headings": "^5.1.0",
3131
"rehype-highlight": "^4.1.0",
3232
"rehype-slug": "^4.0.1",
@@ -35,14 +35,15 @@
3535
"remark-gfm": "^1.0.0",
3636
"remark-parse": "^9.0.0",
3737
"remark-rehype": "^8.1.0",
38-
"svelte": "^3.34.0",
39-
"svelte-check": "^2.0.0",
40-
"svelte-preprocess": "^4.7.3",
41-
"tailwindcss": "^2.2.4",
42-
"to-vfile": "^7.1.0",
43-
"tslib": "^2.0.0",
44-
"typescript": "^4.0.0",
45-
"unified": "^9.2.1"
38+
"svelte": "^3.42.6",
39+
"svelte-check": "^2.2.6",
40+
"svelte-preprocess": "^4.9.5",
41+
"tailwindcss": "^2.2.15",
42+
"to-vfile": "^7.2.2",
43+
"tslib": "^2.3.1",
44+
"typescript": "^4.4.3",
45+
"unified": "^9.2.2"
4646
},
47-
"type": "module"
47+
"type": "module",
48+
"dependencies": {}
4849
}

src/interviews/cloud.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ Using your Azure Subscription, deploy the following.
3232

3333
The development team colleagues have reached out and shared their two (2) ARM Templates with you. They have not been tested, but they have invited you to use them with your deployment!
3434

35-
1. [SQL Database template](a)
36-
2. [Virtual Network template](a)
35+
1. [SQL Database template](./code/sqldatabase.json)
36+
2. [Virtual Network template](/code/networking.json)
3737

3838
## Completion
3939

@@ -67,8 +67,8 @@ Using your AWS Account, deploy the following.
6767

6868
The development team colleagues have reached out and shared their two (2) CloudFormation Templates with you. They have not been tested, but they have invited you to use them with your deployment!
6969

70-
1. [Deployment template](a)
71-
2. [EndPoint template](a)
70+
1. [Deployment template](code/deployment.yaml)
71+
2. [EndPoint template](code/endpoint.yaml)
7272

7373
## Completion
7474

src/interviews/data.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ In order to complete this test, you will need:
1818
As the Data Analyst for a small fuel company, you have been given two (2) data sources.
1919

2020
1. [The FuelWatch RSS feed](http://www.fuelwatch.wa.gov.au/fuelwatch/fuelWatchRSS)
21-
2. [Discounts Excel file](http://www.fuelwatch.wa.gov.au/fuelwatch/fuelWatchRSS)
21+
2. [Discounts Excel file](code/discount.xlsx)
2222

2323
## Instructions
2424

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Software Development
2+
title: Development
33
interviews: Toy Robot
44
sortorder: 2
55
---

src/lib/components/Header.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { component_subscribe } from 'svelte/internal';
3030
<div class="flex flex-col lg:flex-row justify-start flex-wrap">
3131
{#each Interviews as Interview}
3232
<a href={`${base}/${Interview.slug}`}>
33-
<div class="rounded-lg px-5 py-2 bg-red text-white text-lg mr-4 mb-2">{Interview.metadata.title}</div>
33+
<div class="rounded-lg px-5 py-2 bg-red text-white text-lg mr-4 mb-2 hover:bg-black">{Interview.metadata.title}</div>
3434
</a>
3535
{/each}
3636
</div>

src/lib/markdown.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ export interface ProcessedMarkdown {
2020
content: string;
2121
}
2222

23-
const parser = unified().use(parse).use(gfm).use(frontmatter, ['yaml']);
23+
const parser = unified()
24+
.use(parse)
25+
.use(gfm)
26+
.use(frontmatter, ['yaml']);
2427

2528
const runner = unified()
2629
.use(remark2rehype) // Convert Markdown to Rehype

src/routes/[slug].svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,19 @@
3636
<title>Purple Interviews - {post.metadata.title}</title>
3737
</svelte:head>
3838

39-
<div class="px-12 lg:px-32 max-w-screen-xl">
39+
<div class="px-12 lg:px-32 max-w-screen bg-gray">
4040
<h2 class="pb-4 lg:pb-4 text-black text-xl">Instructions for</h2>
4141
<div class="flex flex-col lg:flex-row justify-start pb-2 lg:pb-8">
4242
{#each post.metadata.interviews.split(',') as interviews}
4343
<a href={`#${interviews.toLocaleLowerCase().replace(/ /g,'-')}`} class="text-red">
44-
<div class="rounded-lg px-5 py-2 bg-black text-white text-lg mr-4 mb-2">{interviews}</div>
44+
<div class="rounded-lg px-5 py-2 bg-black text-white text-lg mr-4 mb-2 hover:bg-red">{interviews}</div>
4545
</a>
4646
{/each}
4747
</div>
4848
</div>
4949
<div class="flex flex-col sm:flex-row px-12 lg:px-32 pt-4 pb-5 lg:pt-14 bg-gray-lighter">
5050
<article class="Interview">
51-
{@html post.content}
51+
{@html post.content.replace(/a href/g,"a rel=\"external\" href")}
5252
</article>
5353
</div>
5454
<button

static/code/deployment.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
AWSTemplateFormatVersion: 2010-09-09
2+
Parameters:
3+
TableName:
4+
Description: DynamoDB Table name.
5+
Type: String
6+
Resources:
7+
myVPC:
8+
Type: AWS::EC2::VPC
9+
Properties:
10+
CidrBlock: 10.0.0.0/24
11+
EnableDnsSupport: 'false'
12+
EnableDnsHostnames: 'false'
13+
InstanceTenancy: dedicated
14+
Tags:
15+
- Key: Name
16+
Value: myVPC
17+
myDynamoDBTable:
18+
Type: AWS::DynamoDB::Table
19+
Properties:
20+
TableName: !Ref TableName
21+
AttributeDefinitions:
22+
- AttributeName: "Interviewee"
23+
AttributeType: "S"
24+
KeySchema:
25+
- AttributeName: "Interviewee"
26+
KeyType: HASH
27+
ProvisionedThroughput:
28+
ReadCapacityUnits: 5
29+
WriteCapacityUnits: 5
30+
Outputs:
31+
VPCId:
32+
Value:
33+
Ref: myVPC
34+
TableName:
35+
Value: !Ref 'myDynamoDBTable'
36+
Description: Table name of the newly created DynamoDB table
37+
DynamoDBQualifiedArn:
38+
Export:
39+
Name: DynamoDBArn
40+
Value:
41+
Fn::GetAtt: myDynamoDBTable.Arn

static/code/discount.xlsx

14.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)