Skip to content

Commit

Permalink
This is a new codelab portafolio responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
EmiiEu4n committed Nov 20, 2024
1 parent 03a1340 commit 1fcae9b
Show file tree
Hide file tree
Showing 59 changed files with 1,742 additions and 0 deletions.
61 changes: 61 additions & 0 deletions init.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# init.ps1
# Automate these steps to get yourself up and running with Codelab in Windows
# * Create boilerplate for Codelab
# * Configure a nodemon watch command to rebuild your codelab on save

# Function to check if a command exists
function command_exists {
param ($cmd)
if (-not (Get-Command $cmd -ErrorAction SilentlyContinue)) {
Write-Host "Note: $cmd does not exist. Please install it if you would like to run the codelab locally."
}
}

# Validate that a codelab name was included as an argument
if ($args.Count -ne 1) {
Write-Host "USAGE: .\init.ps1 <CODELAB_NAME>"
exit 1
}

# Variables
$CODELAB_NAME = $args[0]
$AUTHOR_NAME = git config user.name

$codelab_markdown_filename = "markdown\$CODELAB_NAME\$CODELAB_NAME.md"
$codelab_package_json_filename = "markdown\$CODELAB_NAME\package.json"
$markdown_template = "markdown\template\markdown.template"
$package_json_template = "markdown\template\package.json"

# Validate that markdown template and package.json exist
if (-not (Test-Path $markdown_template) -or -not (Test-Path $package_json_template)) {
Write-Host "ERROR: Could not find one of the following files:"
Write-Host " - $markdown_template"
Write-Host " - $package_json_template"
exit 1
}

# Create a new directory for the codelab
New-Item -ItemType Directory -Force -Path "markdown\$CODELAB_NAME"
Copy-Item -Recurse -Force -Path "markdown\template\*" -Destination "markdown\$CODELAB_NAME"
Remove-Item -Force "markdown\$CODELAB_NAME\markdown-iguide.template"

# Rename markdown template file
Rename-Item -Path "markdown\$CODELAB_NAME\markdown.template" -NewName "$CODELAB_NAME.md"

# Replace placeholder codelab id in markdown template file with name provided by command line argument
(Get-Content $codelab_markdown_filename) -replace "CODELAB_NAME.*", $CODELAB_NAME | Set-Content $codelab_markdown_filename

# Replace placeholder author name with Git username
(Get-Content $codelab_markdown_filename) -replace "AUTHOR_NAME.*", $AUTHOR_NAME | Set-Content $codelab_markdown_filename

# Replace placeholder codelab name in the watch command with name provided in command line argument
(Get-Content $codelab_package_json_filename) -replace "CODELAB_NAME", $CODELAB_NAME | Set-Content $codelab_package_json_filename

Write-Host "Markdown file created! Find it at $PWD\markdown\$CODELAB_NAME"

# Check if claat or go commands are available
command_exists claat
command_exists go

# Change to the new directory
Set-Location -Path "$PWD\markdown\$CODELAB_NAME"
Binary file added markdown/portafolio.rar
Binary file not shown.
Binary file added markdown/portafolio/img/Figura1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/portafolio/img/Figura11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/portafolio/img/Figura12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/portafolio/img/Figura13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/portafolio/img/Figura14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/portafolio/img/Figura15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/portafolio/img/Figura16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/portafolio/img/figura10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/portafolio/img/figura17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/portafolio/img/figura18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/portafolio/img/figura19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/portafolio/img/figura2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/portafolio/img/figura20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/portafolio/img/figura21.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/portafolio/img/figura22.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/portafolio/img/figura23.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/portafolio/img/figura24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/portafolio/img/figura25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/portafolio/img/figura26.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/portafolio/img/figura27.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/portafolio/img/figura28.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/portafolio/img/figura29.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/portafolio/img/figura3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/portafolio/img/figura30.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/portafolio/img/figura31.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added markdown/portafolio/img/figura32.png
Binary file added markdown/portafolio/img/figura33.png
Binary file added markdown/portafolio/img/figura34.png
Binary file added markdown/portafolio/img/figura35.png
Binary file added markdown/portafolio/img/figura36.png
Binary file added markdown/portafolio/img/figura37.png
Binary file added markdown/portafolio/img/figura38.png
Binary file added markdown/portafolio/img/figura39.png
Binary file added markdown/portafolio/img/figura4.png
Binary file added markdown/portafolio/img/figura40.png
Binary file added markdown/portafolio/img/figura41.png
Binary file added markdown/portafolio/img/figura42.png
Binary file added markdown/portafolio/img/figura43.png
Binary file added markdown/portafolio/img/figura44.png
Binary file added markdown/portafolio/img/figura45.png
Binary file added markdown/portafolio/img/figura46.png
Binary file added markdown/portafolio/img/figura47.png
Binary file added markdown/portafolio/img/figura48.png
Binary file added markdown/portafolio/img/figura49(2).png
Binary file added markdown/portafolio/img/figura49.png
Binary file added markdown/portafolio/img/figura5.png
Binary file added markdown/portafolio/img/figura50.png
Binary file added markdown/portafolio/img/figura51(2).png
Binary file added markdown/portafolio/img/figura51.png
Binary file added markdown/portafolio/img/figura6.png
Binary file added markdown/portafolio/img/figura7.png
Binary file added markdown/portafolio/img/figura8.png
Binary file added markdown/portafolio/img/figura9.png
Binary file added markdown/portafolio/img/solly_wave.webp
Binary file not shown.
Binary file added markdown/portafolio/img/soly.gif
20 changes: 20 additions & 0 deletions markdown/portafolio/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "codelab-bootstrap",
"version": "1.0.0",
"description": "use nodemon to watch changes on md file, rebuild codelab on saves",
"main": "index.js",
"scripts": {
"watch": "nodemon --watch portafolio.md --exec \"claat export -o temp/ portafolio.md && node ./node_modules/kill-port/cli.js --port 9090 && cd temp/portafolio && claat serve\""
},
"repository": {
"type": "git",
"url": "https://github.com/SolaceDev/solace-dev-codelabs/tree/master/markdown/portafolio"
},
"keywords": [
"codelab"
],
"dependencies": {
"kill-port": "^1.6.1",
"nodemon": "^2.0.3"
}
}
Loading

0 comments on commit 1fcae9b

Please sign in to comment.