词汇:for

prep. 为,为了;给;因为;对于;适合于;至于

相关场景

Is there special request for your food?
>> 8. Arrange Meals
Do you need me to take a picture for you two?
>> 7. visiting and sightseeing
It's time for lunch. We have to hurry up.
>> 7. visiting and sightseeing
Are you hungry now? Are you tired for such a long walk?
>> 7. visiting and sightseeing
Do you think two hours for the Great Wall is enough?
>> 7. visiting and sightseeing
We will spend 2 hours for the Summer Palace.
我们将花两个小时去颐和园。颐和园是用来避暑的。
>> 7. visiting and sightseeing
Here is the best spot for pictures.
>> 7. visiting and sightseeing
I'll leave you ten minutes for taking pictures.
>> 6. Taking care of the tourists of the group
I hope you wear comfortable walking shoes for the Great Wall.
>> 6. Taking care of the tourists of the group
Shall we leave for sightseeing at 8:30 a.m. tomorrow morning?
>> 4 Going over the itinerary
Do I need to make the meal reservation for the group?
>> 1. Making preparations 1-11
G:
I'm really glad to meet you here. Thank you for coming to the airport to meet me.
>> 1. Meeting the Guests at the Airport
what kind of preparation if necessary for a tour guide before he goes to the airport to meet an overseas tour group?
>> 1. Meeting the Guests at the Airport
We're not gonna change that for this little example, but now let's check in that PWA files, and then let's deploy to production one more time. and as you can see, look in the top right corner, when I reload it, we now have that little install icon in Chrome. and if I click that little install icon, I'm gonna get this prompt, and boom! I have a PWA running in production for my Rails application.
>> Rails 8.0.1 You are in good company
And it's gonna refer to an icon, by default,we just have a nice red dot.but you should obviously replace that with your application. And if I hop in and have a look at the service worker, it is sort of already set up for doing we push,just as an example here, having some listeners, you can tweak that as you see fit.
它将指向一个图标,默认情况下,我们只有一个漂亮的红点。但你显然应该用你的应用程序替换它。如果我跳进去看看服务工作者,它已经为我们推送做了准备,就像这里的一个例子,有一些监听器,你可以根据需要进行调整。
>> Rails 8.0.1 You are in good company
We're gonna turn the manifest on in our route file as well. There are basically two lines here as you can see, there's a manifest, and there's a service worker that you can use for your PWA.
>> Rails 8.0.1 You are in good company
we are in with production authentication for the entire system. all right one last thing, let me show how to turn this web application into a PWA as well.
>> Rails 8.0.1 You are in good company
So, be careful when you create things, that are gonna be created on the server side in your real database.The database, by the way? we haven't talked much about that, and that is because we're using SQLite. So, there is nothing to configure,there's nothing to set up, SQLite is now a suitable database for production with Rails. we have tuned it with all the right pragmas,to run SQLite well in production, you of course still need to set up a way to back that up, but everything else is preconfigured for you.
>> Rails 8.0.1 You are in good company
So, it's no gonna show that button if we're not already authenticated, which is good because this layout is also used for login.
>> Rails 8.0.1 You are in good company
But as you can see here, it adds a handful of migrations, one for users, and one for sessions! So, we're gonna run rails db:migrate again!
>> Rails 8.0.1 You are in good company
What it does not give you is a signup flow, because that's usually quite specific to a given application. So, we leave that as an exercise for the reader!
>> Rails 8.0.1 You are in good company
rails g authentication:
Now, let's add authentication to things as well. Authentication is one of the newer feature in Rails, it basically gives you a default setup for tracking sessions, tracking passwords, and even doing password resets.
>> Rails 8.0.1 You are in good company
There was a 404 here! That's because if we go back to out route file, I have not defined route! And in production, you're not gonna get that screen we saw with the Rails version and the Ruby version, that is only for development.
>> Rails 8.0.1 You are in good company
kamal setup:
But this is all we basically need, we are now ready to check in the entire project into Git! Kamal uses Git for keeping track of versions, and we can now run Kamal setup!
>> Rails 8.0.1 You are in good company
You'll need to change that if you're working with other people of course, because you don't wanna check that master key into your Git repository,you're gonna wanna pull that out of one password when you go for real.
>> Rails 8.0.1 You are in good company