Skip to content

Conversation

@verbotenj
Copy link
Contributor

QRcode in browser

qr-code

Closes #98

@verbotenj verbotenj force-pushed the feat-show-qr-code branch 2 times, most recently from d1fee38 to 521692f Compare October 23, 2023 16:41
Copy link
Contributor

@agaffney agaffney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This relies on running snek from its code directory, which isn't a reasonable requirement for the end-user.

We should add some magic to read the template files at build time and compile the content into the binary, or at least hard-code something for now with only a single template file.

api/api.go Outdated
if err != nil {
logging.GetLogger().Errorf("Error finding project root: %v", err)
}
g.LoadHTMLGlob("" + rootDir + "/templates/*")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will only work when running snek from the source repo

api/api.go Outdated
}
dir = nextDir
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably don't want to do anything within snek that expects the original source repo.

api/api_test.go Outdated
func TestRouteRegistration(t *testing.T) {

dir, _ := os.Getwd()
fmt.Println(dir)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need this? It looks like it was here for debugging

@verbotenj verbotenj merged commit f0ca659 into main Oct 23, 2023
@verbotenj verbotenj deleted the feat-show-qr-code branch October 23, 2023 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

QR Code Generation and Scanning for FCM Token Submission

3 participants